Date: Sun, 18 Apr 2010 22:21:23 +0000 (UTC) From: Rick Macklem <rmacklem@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/fs/nfs nfsclstate.h src/sys/fs/nfsclient nfs_clstate.c Message-ID: <201004182221.o3IMLZtL097928@repoman.freebsd.org>
index | next in thread | raw e-mail
rmacklem 2010-04-18 22:21:23 UTC
FreeBSD src repository
Modified files:
sys/fs/nfs nfsclstate.h
sys/fs/nfsclient nfs_clstate.c
Log:
SVN rev 206818 on 2010-04-18 22:21:23Z by rmacklem
Avoid extraneous recovery cycles in the experimental NFS client
when an NFSv4 server reboots, by doing two things.
1 - Make the function that acquires a stateid for I/O operations
block until recovery is complete, so that it doesn't acquire
out of date stateids.
2 - Only allow a recovery once every 1/2 of a lease duration, since
the NFSv4 server must provide a recovery grace period of at
least a lease duration. This should avoid recoveries caused
by an out of date stateid that was acquired for an I/O op.
just before a recovery cycle started.
MFC after: 1 week
Revision Changes Path
1.3 +1 -0 src/sys/fs/nfs/nfsclstate.h
1.12 +29 -4 src/sys/fs/nfsclient/nfs_clstate.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004182221.o3IMLZtL097928>
