diff options
-rw-r--r-- | net/sunrpc/rpcb_clnt.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/sunrpc/rpcb_clnt.c b/net/sunrpc/rpcb_clnt.c index 3df764dc330c..b0f723227157 100644 --- a/net/sunrpc/rpcb_clnt.c +++ b/net/sunrpc/rpcb_clnt.c | |||
@@ -238,6 +238,14 @@ static int rpcb_create_local_unix(struct net *net) | |||
238 | .program = &rpcb_program, | 238 | .program = &rpcb_program, |
239 | .version = RPCBVERS_2, | 239 | .version = RPCBVERS_2, |
240 | .authflavor = RPC_AUTH_NULL, | 240 | .authflavor = RPC_AUTH_NULL, |
241 | /* | ||
242 | * We turn off the idle timeout to prevent the kernel | ||
243 | * from automatically disconnecting the socket. | ||
244 | * Otherwise, we'd have to cache the mount namespace | ||
245 | * of the caller and somehow pass that to the socket | ||
246 | * reconnect code. | ||
247 | */ | ||
248 | .flags = RPC_CLNT_CREATE_NO_IDLE_TIMEOUT, | ||
241 | }; | 249 | }; |
242 | struct rpc_clnt *clnt, *clnt4; | 250 | struct rpc_clnt *clnt, *clnt4; |
243 | int result = 0; | 251 | int result = 0; |