Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp5825489rwb; Wed, 9 Aug 2023 09:34:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGWjxqDx1p/vbNDMXU54CBuBg1j1NlkSa3oM+wt7cVTaczdS7aa1JVikFQfDabGVJoC8VFw X-Received: by 2002:a17:902:e84c:b0:1bc:3504:de35 with SMTP id t12-20020a170902e84c00b001bc3504de35mr3921587plg.62.1691598863917; Wed, 09 Aug 2023 09:34:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691598863; cv=none; d=google.com; s=arc-20160816; b=0hrFrzMiVypLQ5bEeIde7sX/12k18Q/O5r3XmqMe5HRWiVxMFu4abIbzngKdHmOdZc VE9hcSQ/4JqqLVAITF7PrYyKi0B2pTYmzfYRiV8zRW96v20RPAXvA3H0Pb01TNCuiNi/ UDo38vyfp2080QcpGtTLZ1oWxSg6IgMlXi6RlX50l2I8wVOcuDNqvqfLb9K1wSm1H845 wfkK3uNiyvq22CLMHgO8APhFfodHkuG2fRGSmGdUUqyfHoObEkV6E8/cgBbT8j4A/6Lc 70pVoFVhYJ4cn7RPLW7OMEutXG7eFFBuSY7rR1UEZ47j8d656LJqdVIIl35GuOreYkmX YkXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=hDO3gsnyGd4ttxJ2lKpncp2AnZLHDkZWQg+LymUAq28=; fh=v+zjE1HM2dOJtdKydei7VDPf0Fd1YDSDavqlxwJaazc=; b=llSiRzgw3oaU9u06qDjrUX+wf0e7DSAkCLriQIo9nxTV7sAseLb4adfhdUoBrYZjmq 7gOFEG77jWqiyF4pZ56lbldlt9X760dtMPsDZjD0eYn/3Wp3uec/tlAs+t5QSCUNodoP /OizxTsjn/oAJN85nROx9Cq6mlA5ww3W9Gt+yRrTAhgl5XZY1u3BrPqxJInWDYQxCXF+ PVumW6HkusBxptp+gvMD8uaFPiuaYMUTKBlvzy63w6ETSdcX5LKCSDI9ufTdnpqOCgho RSxR+kQvvJ6vtAC0lem5cWitIkwm3KRR0B7Lj4RMlNxYO2+PEGM9n2GkssvOgimApyeQ plbg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p16-20020a170902e75000b001b89b1bae72si9898931plf.528.2023.08.09.09.34.09; Wed, 09 Aug 2023 09:34:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229445AbjHIQOQ (ORCPT + 99 others); Wed, 9 Aug 2023 12:14:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229549AbjHIQOP (ORCPT ); Wed, 9 Aug 2023 12:14:15 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03604C3; Wed, 9 Aug 2023 09:14:15 -0700 (PDT) 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> 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) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org 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.