diff options
| author | Trond Myklebust <trond.myklebust@primarydata.com> | 2016-08-05 19:03:31 -0400 |
|---|---|---|
| committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2016-08-05 19:22:22 -0400 |
| commit | 8d480326c3d6921ff5f1cc988c993bd572248deb (patch) | |
| tree | eb2eac08a44bc78241d78291de545f37f6f3fd51 /include/linux/sunrpc | |
| parent | fb10fb67ad2ce43d5e5b8ad22d2ba826844acc56 (diff) | |
NFSv4: Cap the transport reconnection timer at 1/2 lease period
We don't want to miss a lease period renewal due to the TCP connection
failing to reconnect in a timely fashion. To ensure this doesn't happen,
cap the reconnection timer so that we retry the connection attempt
at least every 1/2 lease period.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'include/linux/sunrpc')
| -rw-r--r-- | include/linux/sunrpc/clnt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sunrpc/clnt.h b/include/linux/sunrpc/clnt.h index b6810c92b8bb..5c02b0691587 100644 --- a/include/linux/sunrpc/clnt.h +++ b/include/linux/sunrpc/clnt.h | |||
| @@ -195,6 +195,8 @@ int rpc_clnt_add_xprt(struct rpc_clnt *, struct xprt_create *, | |||
| 195 | struct rpc_xprt *, | 195 | struct rpc_xprt *, |
| 196 | void *), | 196 | void *), |
| 197 | void *data); | 197 | void *data); |
| 198 | void rpc_cap_max_reconnect_timeout(struct rpc_clnt *clnt, | ||
| 199 | unsigned long timeo); | ||
| 198 | 200 | ||
| 199 | const char *rpc_proc_name(const struct rpc_task *task); | 201 | const char *rpc_proc_name(const struct rpc_task *task); |
| 200 | #endif /* __KERNEL__ */ | 202 | #endif /* __KERNEL__ */ |
