]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC: r333645
authorrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 17 Jul 2018 19:26:17 +0000 (19:26 +0000)
committerrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 17 Jul 2018 19:26:17 +0000 (19:26 +0000)
commit270c59441fee79e9c48adc7e90ab9ca327f38707
tree6b11744fc743c460cb2e658a59ebf17dd62e80be
parent909b618adf8f3c49e4b4b540da9be546c13cf8d9
MFC: r333645
End grace for the NFSv4 server if all mounts do ReclaimComplete.

The NFSv4 protocol requires that the server only allow reclaim of state
and not issue any new open/lock state for a grace period after booting.
The NFSv4.0 protocol required this grace period to be greater than the
lease duration (over 2minutes). For NFSv4.1, the client tells the server
that it has done reclaiming state by doing a ReclaimComplete operation.
If all NFSv4 clients are NFSv4.1, the grace period can end once all the
clients have done ReclaimComplete, shortening the time period considerably.
This patch does this. If there are any NFSv4.0 mounts, the grace period
will still be over 2minutes.
This change is only an optimization and does not affect correct operation.

git-svn-id: svn://svn.freebsd.org/base/stable/10@336422 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/fs/nfs/nfsport.h
sys/fs/nfsserver/nfs_nfsdstate.c