From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH] fs: Make sure data stored into inode is properly seen before unlocking new inode Date: Tue, 8 Sep 2009 14:42:29 -0400 Message-ID: <20090908184229.GA5956@infradead.org> References: <1252410063-26872-1-git-send-email-jack@suse.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: LKML , linux-fsdevel@vger.kernel.org, Andrew Morton , hch@infradead.org To: Jan Kara Return-path: Content-Disposition: inline In-Reply-To: <1252410063-26872-1-git-send-email-jack@suse.cz> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Tue, Sep 08, 2009 at 01:41:03PM +0200, Jan Kara wrote: > In theory it could happen that on one CPU we initialize a new inode but clearing > of I_NEW | I_LOCK gets reordered before some of the initialization. Thus on > another CPU we return not fully uptodate inode from iget_locked(). > > This seems to fix a corruption issue on ext3 mounted over NFS. > > Signed-off-by: Jan Kara Looks good to me. Impressive that this causes real life issues.