From: Neil Brown Date: Mon, 2 Apr 2007 03:25:40 +0000 (+1000) Subject: Tell NFS/lockd client what that local state number is. X-Git-Tag: nfs-utils-1-1-0-rc2~14 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=dda3455d8b96a7b078bc00c113e1af15ed421d5b;hp=dda3455d8b96a7b078bc00c113e1af15ed421d5b Tell NFS/lockd client what that local state number is. 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 ---