From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wendy Cheng Date: Fri, 23 Mar 2007 18:55:17 -0400 Subject: [Cluster-devel] Re: [NFS] [PATCH 1/4 Revised] NLM failover - nlm_unlock In-Reply-To: <17688.30411.484871.224188@cse.unsw.edu.au> References: <4508DE13.6030705@redhat.com> <17688.30411.484871.224188@cse.unsw.edu.au> Message-ID: <46045AD5.9010702@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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: