diff options
author | Bodo Stroesser <bstroesser@ts.fujitsu.com> | 2014-11-12 09:03:24 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2014-11-12 13:46:59 -0500 |
commit | e2989f2f5fd709c19eeb92780a51ae58d3501db8 (patch) | |
tree | e2b4aea11d8706606f39b5a53f603c0ed3ce06b9 /support/nfs/rpcmisc.c | |
parent | f44169dfe52ece05b1c36c0f3c3ea0427f295ace (diff) | |
download | nfs-utils-e2989f2f5fd709c19eeb92780a51ae58d3501db8.tar.gz nfs-utils-e2989f2f5fd709c19eeb92780a51ae58d3501db8.tar.xz nfs-utils-e2989f2f5fd709c19eeb92780a51ae58d3501db8.zip |
rpc.mountd: set nonblocking mode if no libtirpc
If mountd is built without libtirpc and it is started using "-p XXX"
option, the tcp listeners and the sockets waiting for UDP messages
are not in non-blocking mode. Thus if running with multiple threads (-t XX),
all threads will wake up from select on a connection request or a UDP
message, but only one thread will succeed. All others will wait on
accept() or read() for the next event.
Reviewed-by: NeilBrown <neilb@suse.de>
Signed-off-by: Bodo Stroesser <bstroesser@ts.fujitsu.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/nfs/rpcmisc.c')
-rw-r--r-- | support/nfs/rpcmisc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/support/nfs/rpcmisc.c b/support/nfs/rpcmisc.c index 64c98ff..ae2c0a6 100644 --- a/support/nfs/rpcmisc.c +++ b/support/nfs/rpcmisc.c @@ -104,7 +104,7 @@ makesock(int port, int proto) return -1; } - return sock; + return svcsock_nonblock(sock); } void |