From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wendy Cheng Date: Thu, 14 Sep 2006 00:44:03 -0400 Subject: [Cluster-devel] [PATCH 1/4 Revised] NLM failover - nlm_unlock Message-ID: <4508DE13.6030705@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 Signed-off-by: Lon Hohberger fs/lockd/svcsubs.c | 79 +++++++++++++++++++++++++++++++++++++++++--- fs/nfsd/nfsctl.c | 42 +++++++++++++++++++++++ include/linux/lockd/bind.h | 5 ++ include/linux/lockd/lockd.h | 2 + include/linux/nfsd/debug.h | 1 5 files changed, 124 insertions(+), 5 deletions(-) -------------- next part -------------- A non-text attachment was scrubbed... Name: gfs_nlm_unlock.patch Type: text/x-patch Size: 7662 bytes Desc: not available URL: