]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
nfsd4: return default lease period
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 8 Jun 2018 16:33:17 +0000 (12:33 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Sun, 17 Jun 2018 14:20:47 +0000 (10:20 -0400)
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>
fs/nfsd/nfsctl.c

index 5f22476cf3712e5ccc93010189e6f07351f6d1b9..ec8a214a5089c9c7f26eaef4ed647afc731fa01d 100644 (file)
@@ -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();