]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Tell NFS/lockd client what that local state number is.
authorNeil Brown <neilb@suse.de>
Mon, 2 Apr 2007 03:25:40 +0000 (13:25 +1000)
committerNeil Brown <neilb@suse.de>
Mon, 2 Apr 2007 03:25:40 +0000 (13:25 +1000)
Both SM_STAT and SM_MON can return the state of an NSM, but it is
unclear which NSM they return the state of, so the value cannot be
used, and lockd doesn't use it.
Document this confusion, and give the current state to the kernel
via a sysctl if that sysctl is available (since about 2.6.19).
This should make is possible for the NFS server to detect a small
class of bad SM_NOTIFY packets and not flush locks in that case.

Signed-off-by: Neil Brown <neilb@suse.de>

No differences found