From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Viro Subject: Re: [PATCH] deadlock with suspend and quotas Date: Tue, 3 Jan 2012 03:30:05 +0000 Message-ID: <20120103033005.GZ23916@ZenIV.linux.org.uk> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Jan Kara , dm-devel@redhat.com To: Mikulas Patocka Return-path: Received: from zeniv.linux.org.uk ([195.92.253.2]:38004 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751041Ab2ACDaH (ORCPT ); Mon, 2 Jan 2012 22:30:07 -0500 Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Fri, Nov 25, 2011 at 03:25:16PM -0500, Mikulas Patocka wrote: > The following patch fixes the deadlock. When the quota subsystem takes s_umount, > it checks if the filesystem is frozen. If it is, we drop s_umount, wait for > the filesystem to resume and retry. > > Signed-off-by: Mikulas Patocka > CC: stable@kernel.org So basically you want a variant of get_super() that would get you a superblock for this bdev, locked and unfrozen? Fair enough, but * that should be a proper helper in super.c, rather than open-coded in fs/quota/quota.c, of all places * what about other existing callers get_super() and its friends? and while we are at it, why in damnation name is it exported? The only caller outside of core VFS is under #if 0...