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

Wendy Cheng wcheng at redhat.com
Tue Aug 1 02:01:32 UTC 2006


The patch piggy-backs the logic into "rq_daddr" field of struct svc_rqst
where NFS server ip address is stored. Upon writing IPv4 address in
standard dot notation into /proc/fs/nfsd/nlm_unlock, the logic examines
NLM's global nlm_files list and subsequently unlock the associated file
if server ip address matches.

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

fs/lockd/svcsubs.c          |   58 +++++++++++++++++++++++++++++++++++++
+++---- 
fs/nfsd/nfsctl.c            |   57 +++++++++++++++++++++++++++++++++++++
+++++
include/linux/lockd/bind.h  |    5 +++
include/linux/lockd/lockd.h |    3 ++
include/linux/nfsd/debug.h  |    1
net/sunrpc/svcsock.c        |    5 +++
6 files changed, 124 insertions(+), 5 deletions(-)



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


More information about the Cluster-devel mailing list