From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9335D1AA83 for ; Wed, 9 Aug 2023 17:17:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0842FC433C8; Wed, 9 Aug 2023 17:17:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691601443; bh=94i1PotkcLg9jI+MLSbKHuM8C7QSTJimTmZuP2Otc6U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EIpzweUbA9V5Z/oKkSwI+O4V/5jICySvAVER/UhObpw7aH98J3Yp5C00T4fU30T04 nYpDViuDfTXMAlx2bZeIsW+i1T3Cg3Ldzt8weeKXpCWfFUwN6z8VpJX51XDVwahyVI hXe34vMf2Z5nNzqCYekkyOOg/COYvCu5ETjQxajWiKeda3sdnRL8wNn3bKz1QZClev dYNM5xuILF5Oui6lXQCgw21StSLDBS1O37SerU9VNTl6T8NNTRa7Hmuv0NFWmsuo/y E3YVJnl6tDGLsrvrRbo+wmX7XW4t1IPB4XW6BxN090Bd/PNPKG7OTbTWbDy5dx7jye 6Ojjpd745w0Ig== Date: Wed, 9 Aug 2023 10:17:22 -0700 From: "Darrick J. Wong" To: Christoph Hellwig Cc: Al Viro , Christian Brauner , Namjae Jeon , Sungjong Seo , Theodore Ts'o , Andreas Dilger , Konstantin Komarov , linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, ntfs3@lists.linux.dev, linux-xfs@vger.kernel.org Subject: Re: [PATCH 07/13] xfs: close the external block devices in xfs_mount_free Message-ID: <20230809171722.GF11336@frogsfrogsfrogs> References: <20230808161600.1099516-1-hch@lst.de> <20230808161600.1099516-8-hch@lst.de> <20230809155524.GU11352@frogsfrogsfrogs> <20230809161411.GA2346@lst.de> Precedence: bulk X-Mailing-List: ntfs3@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230809161411.GA2346@lst.de> On Wed, Aug 09, 2023 at 06:14:11PM +0200, Christoph Hellwig wrote: > On Wed, Aug 09, 2023 at 08:55:24AM -0700, Darrick J. Wong wrote: > > If I'm following this correctly, putting the superblock flushes the > > bdevs (though it doesn't invalidate the bdev mapping!) and only later > > when we free the xfs_mount do we actually put the buftargs? > > > > That works, though I still think we need to invalidate the bdev > > pagecache for the log and data bdevs. > > Yes, I'll respin it with that. And I'll also add a comment to the > invalidate_bdev calls because it's completely non-obvious as-is. Ok, thanks! You can reuse the commit message if you want. :) --D