]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit - fs/nfsd/nfs4proc.c
nfsd4: extend reclaim period for reclaiming clients
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 8 Jun 2018 16:28:47 +0000 (12:28 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Sun, 17 Jun 2018 14:20:47 +0000 (10:20 -0400)
commit03f318ca652889a1aa407e7088b9a2f6a14ae374
tree9c60c888c2fa0b4e2bdf1dae64754680e0b7faad
parentce397d215ccd07b8ae3f71db689aedb85d56ab40
nfsd4: extend reclaim period for reclaiming clients

If the client is only renewing state a little sooner than once a lease
period, then it might not discover the server has restarted till close
to the end of the grace period, and might run out of time to do the
actual reclaim.

Extend the grace period by a second each time we notice there are
clients still trying to reclaim, up to a limit of another whole lease
period.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/netns.h
fs/nfsd/nfs4proc.c
fs/nfsd/nfs4state.c
fs/nfsd/nfsctl.c