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>
This commit is contained in:
parent
7073ea8799
commit
33d90ac058
4 changed files with 6 additions and 0 deletions
|
@ -256,6 +256,7 @@ static inline int bc_prealloc(struct rpc_rqst *req)
|
|||
#endif /* CONFIG_SUNRPC_BACKCHANNEL */
|
||||
|
||||
#define XPRT_CREATE_INFINITE_SLOTS (1U)
|
||||
#define XPRT_CREATE_NO_IDLE_TIMEOUT (1U << 1)
|
||||
|
||||
struct xprt_create {
|
||||
int ident; /* XPRT_TRANSPORT identifier */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue