cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] [PATCH 1/5] NLM failover - nlm_unlock
@ 2006-08-14  5:57 Wendy Cheng
  2006-08-18  8:23 ` [Cluster-devel] Re: [NFS] " Greg Banks
  0 siblings, 1 reply; 3+ messages in thread
From: Wendy Cheng @ 2006-08-14  5:57 UTC (permalink / raw)
  To: cluster-devel.redhat.com

By writing exported filesytem id into /proc/fs/nfsd/nlm_unlock, this
patch walks thru lockd's global nlm_files list to release all the locks
associated with the particular id. It is used to enable NFS lock
failover with active-active clustered servers.

Relevant steps:
1) Exports filesystem with "fsid" option as:
   /etc/exports entry> /mnt/ext3/exports *(fsid=1234,sync,rw)

2) Drops locks based on fsid by:
   shell> echo 1234 > /proc/fs/nfsd/nlm_unlock

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

 fs/lockd/svcsubs.c          |   79 ++++++++++++++++++++++++++++++++++++
+++++--- 
 fs/nfsd/nfsctl.c            |   41 ++++++++++++++++++++++
 include/linux/lockd/bind.h  |    5 ++
 include/linux/lockd/lockd.h |    2 +
 include/linux/nfsd/debug.h  |    1
 5 files changed, 123 insertions(+), 5 deletions(-)




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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-08-18 14:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-14  5:57 [Cluster-devel] [PATCH 1/5] NLM failover - nlm_unlock Wendy Cheng
2006-08-18  8:23 ` [Cluster-devel] Re: [NFS] " Greg Banks
2006-08-18 14:27   ` Wendy Cheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).