aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2007-07-01 12:13:07 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2007-07-10 23:40:45 -0400
commitf7fb558e503dc80e100acaf116f7261cdd97f0ca (patch)
treeb2f94354cace9c2d1d0fd641f9c42a212b1bc2dc
parentf0768ebd09385551277fcbc8b28c29eb491bf9e2 (diff)
SUNRPC: Allow rpcbind requests to be interrupted by a signal.
This allows NFS mount requests and RPC re-binding to be interruptible if the server isn't responding. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
-rw-r--r--net/sunrpc/rpcb_clnt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sunrpc/rpcb_clnt.c b/net/sunrpc/rpcb_clnt.c
index cf7db59cdcde..9a20f380ab09 100644
--- a/net/sunrpc/rpcb_clnt.c
+++ b/net/sunrpc/rpcb_clnt.c
@@ -184,7 +184,8 @@ static struct rpc_clnt *rpcb_create(char *hostname, struct sockaddr *srvaddr,
184 .program = &rpcb_program, 184 .program = &rpcb_program,
185 .version = version, 185 .version = version,
186 .authflavor = RPC_AUTH_UNIX, 186 .authflavor = RPC_AUTH_UNIX,
187 .flags = RPC_CLNT_CREATE_NOPING, 187 .flags = (RPC_CLNT_CREATE_NOPING |
188 RPC_CLNT_CREATE_INTR),
188 }; 189 };
189 190
190 ((struct sockaddr_in *)srvaddr)->sin_port = htons(RPCBIND_PORT); 191 ((struct sockaddr_in *)srvaddr)->sin_port = htons(RPCBIND_PORT);