From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH 0/11] Per-bdi writeback flusher threads v8 Date: Thu, 28 May 2009 15:38:22 -0400 Message-ID: <20090528193822.GA30982@infradead.org> References: <20090527144754.GD10842@mit.edu> <20090527175353.GE10842@mit.edu> <20090527175830.GF10842@mit.edu> <20090527181402.GP11363@kernel.dk> <20090527191524.GS11363@kernel.dk> <20090527194543.GT11363@kernel.dk> <20090528004959.GH26625@mit.edu> <20090528092803.GE29199@duck.suse.cz> <20090528193246.GX26625@mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: Theodore Tso , "Eric W. Biederman" , Jan Kara , Jens Axboe , linux-kernel@vger.kernel.org, linux-fsdevel@vge Return-path: Received: from bombadil.infradead.org ([18.85.46.34]:39364 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750907AbZE1Tiu (ORCPT ); Thu, 28 May 2009 15:38:50 -0400 Content-Disposition: inline In-Reply-To: <20090528193246.GX26625@mit.edu> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Thu, May 28, 2009 at 03:32:46PM -0400, Theodore Tso wrote: > > I'm pretty sure that after the first call to invalidate_inodes() in > fs/super.c's generic_shutdown_super(), we really don't need to hold > the BKL or the superblock lock (and let the filesystems' low-level > write_super(0 and put_super() take the lock if they really need it), > but we probably need to take a closer look at this to make sure it's > true for all filesystems. (IIRC, I think Christoph was looking to > clean up lock_super(); at least with respect to the write_super call. > I don't know what his plans regarding the BKL and put_super(), > though.) Both the BKL and lock_super are not held for ->put_super anymore in the vfs tree. In fact in the vfs tree there are no callers of lock_super in the VFS anymore.