NFSv4: Cap the transport reconnection timer at 1/2 lease period
authorTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 5 Aug 2016 23:03:31 +0000 (19:03 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 5 Aug 2016 23:22:22 +0000 (19:22 -0400)
commit8d480326c3d6921ff5f1cc988c993bd572248deb
treeeb2eac08a44bc78241d78291de545f37f6f3fd51
parentfb10fb67ad2ce43d5e5b8ad22d2ba826844acc56
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>
fs/nfs/nfs4renewd.c
include/linux/sunrpc/clnt.h
net/sunrpc/clnt.c