From: Neil Brown Subject: Re: Lock client list while detaching locks Date: Fri, 1 Aug 2003 12:21:49 +1000 Sender: nfs-admin@lists.sourceforge.net Message-ID: <16169.52925.519048.996018@gargle.gargle.HOWL> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Return-path: Received: from note.orchestra.cse.unsw.edu.au ([129.94.242.24] ident=root) by sc8-sf-list1.sourceforge.net with smtp (Exim 3.31-VA-mm2 #1 (Debian)) id 19iPYO-0007ib-00 for ; Thu, 31 Jul 2003 19:22:00 -0700 Received: From notabene ([129.94.242.45] == bartok.orchestra.cse.unsw.EDU.AU) (for ) (for ) By note With Smtp ; Fri, 1 Aug 2003 12:21:53 +1000 To: Mark Hemment In-Reply-To: message from Mark Hemment on Thursday July 31 Errors-To: nfs-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Id: Discussion of NFS under Linux development, interoperability, and testing. List-Unsubscribe: , List-Archive: On Thursday July 31, markhe@veritas.com wrote: > Patch against 2.4.21-pre9. > > Mark Thanks. I'll forward it to Marcelo. NeilBrown > > diff -urN linux-2.4.21-pre9/fs/nfsd/export.c nlmdetach/fs/nfsd/export.c > --- linux-2.4.21-pre9/fs/nfsd/export.c 2003-07-31 20:49:28.000000000 +0100 > +++ nlmdetach/fs/nfsd/export.c 2003-07-31 21:08:56.000000000 +0100 > @@ -903,8 +903,10 @@ > { > struct svc_client *clp; > > + exp_readlock(); > for (clp = clients; clp; clp = clp->cl_next) > nfsd_lockd_unexport(clp); > + exp_unlock(); > } > > /* ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs