From: David Woodhouse Subject: Re: [PATCH] Backport inode_hash race fix Date: Tue, 04 Nov 2003 08:51:29 +0000 Sender: linux-fsdevel-owner@vger.kernel.org Message-ID: <1067935889.31340.6.camel@hades.cambridge.redhat.com> References: <20030814151211.GA15650@ime.usp.br> <1067439222.16018.8.camel@hades.cambridge.redhat.com> <16289.58315.544796.134740@notabene.cse.unsw.edu.au> <16289.60912.741569.286152@notabene.cse.unsw.edu.au> <16294.50757.170712.271692@charged.uio.no> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: Neil Brown , Livio Baldini Soares , linux-fsdevel@vger.kernel.org, Andreas Dilger Return-path: Received: from pentafluge.infradead.org ([213.86.99.235]:56557 "EHLO pentafluge.infradead.org") by vger.kernel.org with ESMTP id S263999AbTKDIvi (ORCPT ); Tue, 4 Nov 2003 03:51:38 -0500 To: trond.myklebust@fys.uio.no In-Reply-To: <16294.50757.170712.271692@charged.uio.no> List-Id: linux-fsdevel.vger.kernel.org On Mon, 2003-11-03 at 16:19 -0500, Trond Myklebust wrote: > Why should that sort of test be insufficient to prevent races? What > processes are dirtying the inode after we set I_FREEING? That wasn't the problem. The problem is that some file systems have ancillary data structures or locking rules which make it problematic for read_inode(), read_inode(), clear_inode() to happen in _that_ order for the same inode. -- dwmw2