Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp355918rwb; Fri, 4 Aug 2023 14:01:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEnBXjGtD+xFttEg3a5PsuQbyiFZ2i//G86N0H+HqPCgXDTjR1aFg8gb/f/elN5qYt++MyQ X-Received: by 2002:a17:902:e842:b0:1b6:b44d:a5b6 with SMTP id t2-20020a170902e84200b001b6b44da5b6mr2929698plg.14.1691182887501; Fri, 04 Aug 2023 14:01:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691182887; cv=none; d=google.com; s=arc-20160816; b=douthB2kwU9n6nE6Ans+faoX0DllNj/WIMR/G7FPNwOFbiqdBFwVjLVl9SVWCBDivi Y/r2/RGPTGODutPlxwn3CmF+pAcy3TgXMLljJ7mnvSF36fGjBD/XS0a0qOQ1a3rFUR7v lzlf4yfP4ETdbnoJyGNbhVINZf1A5TGcp6cH4D1cEYZUZQdjXBE2pyIHDF4RDisM9eBZ huw94xQ/I/noyNInM9lYQKBSB1qtO4v5NDZhSOUTf+s/zkTcUWhBNrekHqJwKBY99ZEk dtuM4mgMRRxMSq/b5U7WY09azS+1w2Mrs0FXfXxYEyI5ueRxvMqJsXLj/+KIjREh0CKO ufMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=eb93p14LbhHMq9VAU9FSt+DcSUdrlvW15TyYmjztiqQ=; fh=tbfguDJjNiBBIP8rxz454WFFRMiSKLzD/jT1+a3JOUA=; b=g/ZMv/GqqKqKbcB+piIHyl2ySUGMgdbYdJCemQrAILLt78hWxih7Yd1EvdAcZd8o7S gi+YP3QUbPYBrllMK4MLZERYGeg9A6yYYPMG/BhMXJ+F49aJ/RpYPfxUrHmtUL36BTxU YecYOFNEK3LKuHyM7lIiCvfzlFE9DfseYwsv9UFU3MwIVGa07w89WQu8C/JVgtQpSjo0 byay9W2RsWJMyJ9yXgTsxveIDZuUCdqcnuLTD+unXoqvZe3fpr64Q+ZmWiT3gkFyCODC iIxEOpi98brr2N2Mj1r9nPWwL/XWxPhq179tTEoxBjeq9c5k5CVsriELd5Hh1buYWHad V80g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mit.edu header.s=outgoing header.b="Cmbci/Va"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mit.edu Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n18-20020a170903111200b001bb7906cf34si2312702plh.261.2023.08.04.14.01.14; Fri, 04 Aug 2023 14:01:27 -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; dkim=pass header.i=@mit.edu header.s=outgoing header.b="Cmbci/Va"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mit.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230231AbjHDUfW (ORCPT + 99 others); Fri, 4 Aug 2023 16:35:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230235AbjHDUfV (ORCPT ); Fri, 4 Aug 2023 16:35:21 -0400 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 826034C2D for ; Fri, 4 Aug 2023 13:35:20 -0700 (PDT) Received: from cwcc.thunk.org (pool-173-48-112-100.bstnma.fios.verizon.net [173.48.112.100]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 374KYoJ9025333 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 4 Aug 2023 16:34:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=outgoing; t=1691181294; bh=eb93p14LbhHMq9VAU9FSt+DcSUdrlvW15TyYmjztiqQ=; h=Date:From:Subject:Message-ID:MIME-Version:Content-Type; b=Cmbci/Vas57W7Gs1mmt04uOthaR1e+rzdGz6ITDOXZ7ar1BUIxuloHDQosTWOCKWI iB56bnyujn38Bh0Bp8Z9EdtMGK5JGqwP/Dc9817D37D5RzTjBcqX7HfyweGFQEIlNc BVs1/MrxyUeyzFJS766n80HD2+PFuYOP4G3VM8zfAxBDEfh2gwQRvXgsgqIMcMc0wN OtpY0Qeymqh8HbDn2ZQVvOacBb7LkX38rsikz68ioX6wllgIiRTX9csEEqK5ZCQd2m kHOKMhSYpzYpG5XePqQ01RloNzfxpmSlLpaGQE5i8Tm2KMJbuA8zWdXQJfaXrlAorq d89+IyylQf2+A== Received: by cwcc.thunk.org (Postfix, from userid 15806) id 594D415C04F1; Fri, 4 Aug 2023 16:34:50 -0400 (EDT) Date: Fri, 4 Aug 2023 16:34:50 -0400 From: "Theodore Ts'o" To: Christoph Hellwig Cc: Al Viro , Christian Brauner , Jan Kara , Chris Mason , Josef Bacik , David Sterba , Andreas Dilger , Jaegeuk Kim , Chao Yu , Ryusuke Konishi , "Darrick J. Wong" , Jens Axboe , linux-btrfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-nilfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-block@vger.kernel.org Subject: Re: [PATCH 09/12] ext4: drop s_umount over opening the log device Message-ID: <20230804203450.GD903325@mit.edu> References: <20230802154131.2221419-1-hch@lst.de> <20230802154131.2221419-10-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230802154131.2221419-10-hch@lst.de> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 02, 2023 at 05:41:28PM +0200, Christoph Hellwig wrote: > Just like get_tree_bdev needs to drop s_umount when opening the main > device, we need to do the same for the ext4 log device to avoid a > potential lock order reversal with s_unmount for the mark_dead path. > > It might be preferable to just drop s_umount over ->fill_super entirely, > but that will require a fairly massive audit first, so we'll do the easy > version here first. > > Signed-off-by: Christoph Hellwig Acked-by: Theodore Ts'o