Skip to content

Commit

Permalink
SUNRPC: Allow rpcbind requests to be interrupted by a signal.
Browse files Browse the repository at this point in the history
This allows NFS mount requests and RPC re-binding to be interruptible if the
server isn't responding.

Signed-off-by: Chuck Lever <[email protected]>
Signed-off-by: Trond Myklebust <[email protected]>
  • Loading branch information
chucklever authored and Trond Myklebust committed Jul 11, 2007
1 parent f0768eb commit f7fb558
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/sunrpc/rpcb_clnt.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ static struct rpc_clnt *rpcb_create(char *hostname, struct sockaddr *srvaddr,
.program = &rpcb_program,
.version = version,
.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);
Expand Down

0 comments on commit f7fb558

Please sign in to comment.