From: Jan Kara Subject: Re: [PATCH] Fix of quota deadlock on pagelock Date: Mon, 22 Nov 2004 12:11:50 +0100 Message-ID: <20041122111150.GA6473@atrey.karlin.mff.cuni.cz> References: <20041119095515.GD15189@atrey.karlin.mff.cuni.cz> <20041119100434.GF15189@atrey.karlin.mff.cuni.cz> <20041119144640.0887cdf0.akpm@osdl.org> <20041122104021.GD26824@atrey.karlin.mff.cuni.cz> <20041122025023.61f3db62.akpm@osdl.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org, reiserfs-list@namesys.com Return-path: list-help: list-unsubscribe: list-post: Errors-To: flx@namesys.com To: Andrew Morton Content-Disposition: inline In-Reply-To: <20041122025023.61f3db62.akpm@osdl.org> List-Id: linux-fsdevel.vger.kernel.org > Jan Kara wrote: > > > > > > > > What prevents vfs_quota_off() from racing with unmount? > > > > > > If you look at, say, sync_filesystems() you'll see that we take ->s_umount > > > and then test ->s_root to check that we didn't race with an unmount > > > attempt. > > I thought that the sync_fs and stuff is guarded by the fact that quota > > code is holding references to inodes on the filesystem. And invalidate_bdev() > > should not care about the filesystem. Or do I miss something? Anyway > > adding a comment about this is really a good idea... > > Holding a ref on an inode will not cause umount to block. It'll just cause > nasty "Busy inodes after unmount" warnings. I see, thanks. I'll fix that also. Honza -- Jan Kara SuSE CR Labs