From: Fernando Luis =?ISO-8859-1?Q?V=E1zquez?= Cao Subject: Re: [PATCH 7/9] fsfreeze: freeze_super and thaw_bdev don't play well together Date: Fri, 05 Oct 2012 13:30:12 +0900 Message-ID: <1349411412.7072.0.camel@nexus.lab.ntt.co.jp> References: <1347605006.6868.2.camel@nexus.lab.ntt.co.jp> <1347605614.6868.9.camel@nexus.lab.ntt.co.jp> <20120925094828.GD8049@quack.suse.cz> <50618CB5.2010602@lab.ntt.co.jp> <20120925163942.GF8049@quack.suse.cz> <5062BB5D.1020508@lab.ntt.co.jp> <20120926090955.GA7678@quack.suse.cz> <506BF03A.3010803@lab.ntt.co.jp> <20121004081839.GA4641@quack.suse.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Al Viro , Josef Bacik , Eric Sandeen , Dave Chinner , Christoph Hellwig , linux-fsdevel@vger.kernel.org To: Jan Kara Return-path: Received: from tama500.ecl.ntt.co.jp ([129.60.39.148]:52919 "EHLO tama500.ecl.ntt.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751274Ab2JEHFI (ORCPT ); Fri, 5 Oct 2012 03:05:08 -0400 In-Reply-To: <20121004081839.GA4641@quack.suse.cz> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: 2012-10-04 (=E6=9C=A8) =E3=81=AE 10:18 +0200 =E3=81=AB Jan Kara =E3=81=95= =E3=82=93=E3=81=AF=E6=9B=B8=E3=81=8D=E3=81=BE=E3=81=97=E3=81=9F: > > As you say when we get there via the superblock level API > > it is guaranteed that we have at least one active reference > > and that MS_BORN is set. However, freeze_bdev() iterates > > over superblocks using get_active_super() which can return > > a superblock without the MS_BORN flag set; during sys_mount > > mount_fs() sets the MS_BORN flag *after* sget() inserts the > > superblock in all the lists. > >=20 > > If the analysis above is correct we do need the MS_BORN > > check. > Checking again I agree with you. But that seems more like an issue = with > get_active_super() which shouldn't return superblock without MS_BORN. > Whatever... that can be left for a separate patch. Yes, let's leave it for a separate patch. Thanks, =46ernando -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel= " in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html