From: Wendy Cheng <wcheng@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] Re: [NFS] [PATCH 1/4 Revised] NLM failover - nlm_unlock
Date: Fri, 23 Mar 2007 18:55:17 -0400 [thread overview]
Message-ID: <46045AD5.9010702@redhat.com> (raw)
In-Reply-To: <17688.30411.484871.224188@cse.unsw.edu.au>
Neil Brown wrote:
> On Thursday September 14, wcheng at redhat.com wrote:
>
>> 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
>>
>
> I actually felt a bit more comfortable with the server-ip based
> approach, how I cannot really fault the fsid based approach, and it
> does seem to have some advantages, so I guess we go with it.
>
Neil,
I replaced the checking inside nlm_traverse_files with nlm_file_inuse()
as we discussed in:
http://sourceforge.net/mailarchive/forum.php?thread_id=31885384&forum_id=4930
If a separate patch is a better idea, feel free to yank it out. The code
is based on 2.6.21.rc4 kernel and can be used independently (without
other NLM failover patches). We submit it earlier (others still being
worked on) to avoid the tedious rebase efforts. There are also customer
requests from our distribution to ask for this function in a single
server (no cluster) environment.
-- Wendy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nlm_unlock.patch
Type: text/x-patch
Size: 8956 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/cluster-devel/attachments/20070323/c90f29b2/attachment.bin>
next prev parent reply other threads:[~2007-03-23 22:55 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-14 4:44 [Cluster-devel] [PATCH 1/4 Revised] NLM failover - nlm_unlock Wendy Cheng
[not found] ` <message from Wendy Cheng on Thursday September 14>
2006-09-26 0:39 ` [Cluster-devel] Re: [NFS] " Neil Brown
2007-03-23 22:55 ` Wendy Cheng [this message]
2006-09-26 0:46 ` [Cluster-devel] Re: [NFS] [PATCH 2/4 Revised] NLM failover - nlm_set_igrace Neil Brown
2007-03-26 22:21 ` Wendy Cheng
2007-03-28 2:45 ` J. Bruce Fields
2007-03-28 5:32 ` Wendy Cheng
2007-03-28 23:28 ` J. Bruce Fields
2007-03-29 5:31 ` Wendy Cheng
2006-09-26 0:54 ` [Cluster-devel] Re: [NFS] [PATCH 3/4 Revised] NLM failover - statd changes Neil Brown
2006-09-26 13:42 ` Wendy Cheng
-- strict thread matches above, loose matches on Subject: below --
2006-09-14 4:48 [Cluster-devel] [PATCH 2/4 Revised] NLM failover - nlm_set_igrace Wendy Cheng
2006-09-14 4:50 [Cluster-devel] [PATCH 3/4 Revised] NLM failover - statd changes Wendy Cheng
2007-03-27 22:46 ` Wendy Cheng
2007-03-30 7:20 ` Wendy Cheng
2007-03-30 7:25 ` Wendy Cheng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46045AD5.9010702@redhat.com \
--to=wcheng@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).