From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: with ECARTIS (v1.0.0; list xfs); Sat, 31 May 2008 06:34:43 -0700 (PDT) Received: from cuda.sgi.com (cuda1.sgi.com [192.48.168.28]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m4VDYc9P001957 for ; Sat, 31 May 2008 06:34:39 -0700 Received: from ZenIV.linux.org.uk (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 4B4421228114 for ; Sat, 31 May 2008 06:35:30 -0700 (PDT) Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [195.92.253.2]) by cuda.sgi.com with ESMTP id L3HfZMg5yhc3YrC0 for ; Sat, 31 May 2008 06:35:30 -0700 (PDT) Date: Sat, 31 May 2008 14:35:27 +0100 From: Al Viro Subject: Re: [PATCH] always set a/c/mtime through ->setattr Message-ID: <20080531133527.GB28946@ZenIV.linux.org.uk> References: <20080520060838.GA6436@lst.de> <20080520083351.GA14826@lst.de> <20080531132048.GA4201@ZenIV.linux.org.uk> <20080531132444.GA22936@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080531132444.GA22936@infradead.org> Sender: xfs-bounce@oss.sgi.com Errors-to: xfs-bounce@oss.sgi.com List-Id: xfs To: Christoph Hellwig Cc: Miklos Szeredi , hch@lst.de, linux-fsdevel@vger.kernel.org, xfs@oss.sgi.com, Artem.Bityutskiy@nokia.com On Sat, May 31, 2008 at 09:24:45AM -0400, Christoph Hellwig wrote: > On Sat, May 31, 2008 at 02:20:48PM +0100, Al Viro wrote: > > And there's one more problem, promising very ugly code review: locking > > rules for notify_change() had suddenly changed - you are calling it > > without i_mutex now. And ext3_setattr() is not happy - especially due > > to this blind call of ext3_orphan_del() in there. We can easily fix > > that one, but you'll need to audit the rest of instances... > > Yeah, I've actually started an audit of the setattr instance and there's > even more crap turning up. I'm working on a bigger series to sort these > things out. Grabbing i_mutex may get very interesting on pagefault paths when dirtying a page - locking rules are interesting there already...