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 | |
parent | fb10fb67ad2ce43d5e5b8ad22d2ba826844acc56 (diff) | |
download | linux-rpi-8d480326c3d6921ff5f1cc988c993bd572248deb.tar.gz linux-rpi-8d480326c3d6921ff5f1cc988c993bd572248deb.tar.bz2 linux-rpi-8d480326c3d6921ff5f1cc988c993bd572248deb.zip |
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')
-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 *, struct rpc_xprt *, void *), void *data); +void rpc_cap_max_reconnect_timeout(struct rpc_clnt *clnt, + unsigned long timeo); const char *rpc_proc_name(const struct rpc_task *task); #endif /* __KERNEL__ */ |