mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 09:59:32 +00:00
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>
This commit is contained in:
parent
f0768ebd09
commit
f7fb558e50
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue