Commit f7fb558e authored by Chuck Lever's avatar Chuck Lever Committed by Trond Myklebust

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: default avatarChuck Lever <chuck.lever@oracle.com>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent f0768ebd
...@@ -184,7 +184,8 @@ static struct rpc_clnt *rpcb_create(char *hostname, struct sockaddr *srvaddr, ...@@ -184,7 +184,8 @@ static struct rpc_clnt *rpcb_create(char *hostname, struct sockaddr *srvaddr,
.program = &rpcb_program, .program = &rpcb_program,
.version = version, .version = version,
.authflavor = RPC_AUTH_UNIX, .authflavor = RPC_AUTH_UNIX,
.flags = RPC_CLNT_CREATE_NOPING, .flags = (RPC_CLNT_CREATE_NOPING |
RPC_CLNT_CREATE_INTR),
}; };
((struct sockaddr_in *)srvaddr)->sin_port = htons(RPCBIND_PORT); ((struct sockaddr_in *)srvaddr)->sin_port = htons(RPCBIND_PORT);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment