From: Andrew Morton Subject: Re: [PATCH] Fix of quota deadlock on pagelock Date: Fri, 19 Nov 2004 14:46:40 -0800 Message-ID: <20041119144640.0887cdf0.akpm@osdl.org> References: <20041119095515.GD15189@atrey.karlin.mff.cuni.cz> <20041119100434.GF15189@atrey.karlin.mff.cuni.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: linux-fsdevel@vger.kernel.org, reiserfs-list@namesys.com Return-path: list-help: list-unsubscribe: list-post: Errors-To: flx@namesys.com To: Jan Kara In-Reply-To: <20041119100434.GF15189@atrey.karlin.mff.cuni.cz> List-Id: linux-fsdevel.vger.kernel.org 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.