From mboxrd@z Thu Jan 1 00:00:00 1970 From: Philippe Troin Subject: Re: Killed process on NFS client can result in lost lock on server Date: 30 Sep 2003 23:38:20 -0700 Sender: nfs-admin@lists.sourceforge.net Message-ID: <87pthhv4wz.fsf@ceramic.fifi.org> References: <87r81y11og.fsf@ceramic.fifi.org> <87n0cl29cp.fsf@ceramic.fifi.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: nfs@lists.sourceforge.net Return-path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.11] helo=sc8-sf-mx1.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Cipher TLSv1:DES-CBC3-SHA:168) (Exim 3.31-VA-mm2 #1 (Debian)) id 1A4ad0-0000Io-00 for ; Tue, 30 Sep 2003 23:38:26 -0700 Received: from tantale.fifi.org ([216.27.190.146] ident=root) by sc8-sf-mx1.sourceforge.net with esmtp (Exim 4.22) id 1A4acz-0006uv-8l for nfs@lists.sourceforge.net; Tue, 30 Sep 2003 23:38:25 -0700 To: Trond Myklebust In-Reply-To: <87n0cl29cp.fsf@ceramic.fifi.org> 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: Philippe Troin writes: > Trond Myklebust writes: > > > >>>>> " " == Philippe Troin writes: > > > > > While trying to make this test program, I've noticed that the > > > problem only occurs while I/O is done on the locked file. Note > > > the write() in a while loop in the test program. I could not > > > get the bad behavior to show up if no I/O is going on. > > > > Yep. It's the same problem as in nlmclnt_proc(): we have to clean up > > all locks come rain or shine when the process exits. > > Thanks for the patch Trond, I'll give it a shot later today. Unfortunately, your patch does not fix the bug, although it makes it less frequent. Please try running kill-locks for extended periods of time to see the bug happen again. I can see the problem develop after 100-200 successful locking attempts here, versus just a few (< 10) successful locking attempts before your patch. Phil. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs