summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2018-06-08 18:33:17 +0200
committerJ. Bruce Fields <bfields@redhat.com>2018-06-17 16:20:47 +0200
commitd6ebf5088f09472c1136cd506bdc27034a6763f8 (patch)
treeef537893ad3d2d8e464ce33ee662184659e8a5bf
parentnfsd4: extend reclaim period for reclaiming clients (diff)
downloadlinux-d6ebf5088f09472c1136cd506bdc27034a6763f8.tar.xz
linux-d6ebf5088f09472c1136cd506bdc27034a6763f8.zip
nfsd4: return default lease period
I don't have a good rationale for the lease period, but 90 seconds seems long, and as long as we're allowing the server to extend the grace period up to double the lease period, let's half the default to 45. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
-rw-r--r--fs/nfsd/nfsctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c
index 5f22476cf371..ec8a214a5089 100644
--- a/fs/nfsd/nfsctl.c
+++ b/fs/nfsd/nfsctl.c
@@ -1237,8 +1237,8 @@ static __net_init int nfsd_init_net(struct net *net)
retval = nfsd_idmap_init(net);
if (retval)
goto out_idmap_error;
- nn->nfsd4_lease = 90; /* default lease time */
- nn->nfsd4_grace = 90;
+ nn->nfsd4_lease = 45; /* default lease time */
+ nn->nfsd4_grace = 45;
nn->somebody_reclaimed = false;
nn->clverifier_counter = prandom_u32();
nn->clientid_counter = prandom_u32();