Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262542AbVA0Jaq (ORCPT ); Thu, 27 Jan 2005 04:30:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262543AbVA0Jaq (ORCPT ); Thu, 27 Jan 2005 04:30:46 -0500 Received: from mx1.redhat.com ([66.187.233.31]:31639 "EHLO mx1.redhat.com") by vger.kernel.org with ESMTP id S262542AbVA0JaT (ORCPT ); Thu, 27 Jan 2005 04:30:19 -0500 Subject: Re: UDF madness From: "Stephen C. Tweedie" To: Al Viro Cc: Stephen Tweedie , Andrew Morton , Attila Body , linux-kernel , Christoph Hellwig In-Reply-To: <20050127075749.GM8859@parcelfarce.linux.theplanet.co.uk> References: <1106688285.5297.3.camel@smiley> <20050126201141.59c90e69.akpm@osdl.org> <20050127075749.GM8859@parcelfarce.linux.theplanet.co.uk> Content-Type: text/plain Message-Id: <1106818204.1955.18.camel@sisko.sctweedie.blueyonder.co.uk> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-9) Date: Thu, 27 Jan 2005 09:30:04 +0000 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1238 Lines: 31 Hi, On Thu, 2005-01-27 at 07:57, Al Viro wrote: > Note that fs users of file_fsync() are definitely not going to be > involved into contention here - they need opened file => held active > reference to superblock. > So we are left only with fs-internal asynchronous callers of > lock_super(). UDF, UFS, sysv, hpfs and ext2 are out of question - they > don't have async callers of that sort. ext3... maybe, I'm not familiar > with resize code in there. In any case, that'd better be fixed in > ext3 if such abuse exists. ext3 resize is like file_fsync() --- it's an ioctl, so there's a guaranteed open file at that point. But while the resize code originally used lock_super() to protect from races against allocation/deallocation, the ordering fixes in it means that that's all safe anyway now. The lock_super() is currently only really used to guard against two threads doing resize at the same time, and if it's a problem, it would be trivial to use a different lock. --Stephen - 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/