diff options
author | J. Bruce Fields <bfields@redhat.com> | 2013-04-11 15:06:36 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2013-04-26 11:41:26 -0400 |
commit | 33d90ac0581ce81d1ebfc51918a2757e41a6011c (patch) | |
tree | ee1a01377713975303cbfae2abb268de2ec6a769 /net/sunrpc/clnt.c | |
parent | 7073ea8799a8cf73db60270986f14e4aae20fa80 (diff) | |
download | blackbird-obmc-linux-33d90ac0581ce81d1ebfc51918a2757e41a6011c.tar.gz blackbird-obmc-linux-33d90ac0581ce81d1ebfc51918a2757e41a6011c.zip |
SUNRPC: allow disabling idle timeout
In the gss-proxy case we don't want to have to reconnect at random--we
want to connect only on gss-proxy startup when we can steal gss-proxy's
context to do the connect in the right namespace.
So, provide a flag that allows the rpc_create caller to turn off the
idle timeout.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc/clnt.c')
-rw-r--r-- | net/sunrpc/clnt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index 651245aa829a..80cf23241da9 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c @@ -416,6 +416,8 @@ struct rpc_clnt *rpc_create(struct rpc_create_args *args) if (args->flags & RPC_CLNT_CREATE_INFINITE_SLOTS) xprtargs.flags |= XPRT_CREATE_INFINITE_SLOTS; + if (args->flags & RPC_CLNT_CREATE_NO_IDLE_TIMEOUT) + xprtargs.flags |= XPRT_CREATE_NO_IDLE_TIMEOUT; /* * If the caller chooses not to specify a hostname, whip * up a string representation of the passed-in address. |