Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758450AbYJ3SEP (ORCPT ); Thu, 30 Oct 2008 14:04:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756730AbYJ3SD5 (ORCPT ); Thu, 30 Oct 2008 14:03:57 -0400 Received: from mx2.redhat.com ([66.187.237.31]:42894 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756242AbYJ3SD4 (ORCPT ); Thu, 30 Oct 2008 14:03:56 -0400 Message-ID: <4909F705.8090904@redhat.com> Date: Thu, 30 Oct 2008 13:03:49 -0500 From: Eric Sandeen User-Agent: Thunderbird 2.0.0.16 (X11/20080723) MIME-Version: 1.0 To: Arthur Jones CC: "linux-ext4@vger.kernel.org" , "sct@redhat.com" , "akpm@linux-foundation.org" , "linux-kernel@vger.kernel.org" Subject: Re: ext3: slow symlink corruption on umount... References: <20081024183733.GA25797@ajones-laptop.nbttech.com> <20081027165423.GB25797@ajones-laptop.nbttech.com> <20081029195403.GA8333@ajones-laptop.nbttech.com> <4908C951.2000309@redhat.com> <20081030174057.GB7926@ajones-laptop.nbttech.com> In-Reply-To: <20081030174057.GB7926@ajones-laptop.nbttech.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 966 Lines: 29 Arthur Jones wrote: > Hi Eric, ... > > On Wed, Oct 29, 2008 at 01:36:33PM -0700, Eric Sandeen wrote: >> [...] >> I'll look into it ... > > In the cases that fail, I'm seeing bdi_write_congested() > return 2 at the top of write_cache_pages(). In the working > case, bdi_write_congested() returns 0 and the inodes are > found twice in the s_io list in generic_sync_sb_inodes, > first as i_state==7, where they are skipped, then a second > time as i_state==4, where ->writepage() is then called... > > Arthur Something is definitely racy here; in my simple testcase I get failures maybe 30-50% of the time... If I add a mark_buffer_dirty to write_end_fn, it always passes but I need to think a bit about that. -Eric -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/