[Cluster-devel] [PATCH 1/3] NLM lock failover

Wendy Cheng wcheng at redhat.com
Tue Aug 1 02:06:31 UTC 2006


This patch enables per ip NLM lock grace period. The implementation is
based on a global single linked list nlm_servs that contains entries of
per server ip info. It is expected this would not be a frequent event.
The nlm_servs list should be short and the entries expire within a
maximum of 50 seconds. The grace period setting follows the existing NLM
grace period handling logic and is triggered via echoing the ipv4 dot
address into /proc/fs/nfsd/nlm_set_ip_grace file.

Signed-off-by: S. Wendy Cheng <wcheng at redhat.com>
Signed-off-by: Lon Hohberger <lhh at redhat.com>

fs/lockd/svc.c              |    8 +-
fs/lockd/svc4proc.c         |   41 ++++++++++---
fs/lockd/svcproc.c          |   43 +++++++++++---
fs/lockd/svcsubs.c          |  133 +++++++++++++++++++++++++++++++++++++
++++++ 
fs/nfsd/nfsctl.c            |   36 +++++++++++
include/linux/lockd/bind.h  |    3
include/linux/lockd/lockd.h |   15 ++++
7 files changed, 261 insertions(+), 18 deletions(-)



-------------- next part --------------
A non-text attachment was scrubbed...
Name: gfs_nlm_ip_grace.patch
Type: text/x-patch
Size: 15853 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/cluster-devel/attachments/20060731/be17af2e/attachment.bin>


More information about the Cluster-devel mailing list