From: Jan Kara Subject: Re: [PATCH 2/7] fsfreeze: emergency thaw will deadlock on s_umount Date: Tue, 10 Jul 2012 14:15:36 +0200 Message-ID: <20120710121536.GE13539@quack.suse.cz> References: <1341908216.11559.6.camel@nexus.lab.ntt.co.jp> <1341908615.11559.13.camel@nexus.lab.ntt.co.jp> <20120710090918.GA13539@quack.suse.cz> <20120710091352.GB13539@quack.suse.cz> <4FFBF633.1020004@lab.ntt.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Jan Kara , Al Viro , Dave Chinner , Christoph Hellwig , linux-fsdevel@vger.kernel.org To: Fernando Luis Vazquez Cao Return-path: Received: from cantor2.suse.de ([195.135.220.15]:37565 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752882Ab2GJMPh (ORCPT ); Tue, 10 Jul 2012 08:15:37 -0400 Content-Disposition: inline In-Reply-To: <4FFBF633.1020004@lab.ntt.co.jp> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Tue 10-07-12 18:30:27, Fernando Luis Vazquez Cao wrote: > On 2012/07/10 18:13, Jan Kara wrote: > > >On Tue 10-07-12 11:09:18, Jan Kara wrote: > >... > >>Also looking into the code, it seems emergency thaw won't be able to thaw > >>filesystems frozen with FIFREEZE ioctl (bd_fsfreeze_count will be zero)? > >>Calling thaw_super() directly would solve this but then we'd leave > >>bd_fzfreeze_count inconsistent... It's a mess with these two types of > >>freezing. > > Ah, I see you try to address this in the next patch. So scratch this > >comment. > > Ok. I would appreciate if you could take a look at all the patches. Except for patches 1 and 2 I'm basically OK with the series. Maybe I'd move patches 3 and 4 to the beginning of the series to make fixes of emergency thawing easier (you don't have to change thaw_bdev() as well). But that's a minor thing. > By the way, do you want me to rebase on top of your tree? It depends on how Al plans to handle my freezing fixes. I still don't see them in his tree. Al? Honza -- Jan Kara SUSE Labs, CR