From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (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 91A7C18AE4 for ; Wed, 9 Aug 2023 16:14:15 +0000 (UTC) Received: by verein.lst.de (Postfix, from userid 2407) id 329E26732D; Wed, 9 Aug 2023 18:14:11 +0200 (CEST) Date: Wed, 9 Aug 2023 18:14:11 +0200 From: Christoph Hellwig To: "Darrick J. Wong" Cc: Christoph Hellwig , 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: <20230809161411.GA2346@lst.de> References: <20230808161600.1099516-1-hch@lst.de> <20230808161600.1099516-8-hch@lst.de> <20230809155524.GU11352@frogsfrogsfrogs> 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: <20230809155524.GU11352@frogsfrogsfrogs> User-Agent: Mutt/1.5.17 (2007-11-01) 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.