Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2601103rwo; Thu, 3 Aug 2023 11:49:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlHtteseuwcvN782Non0Ie0oiT2Ll9BtP1ZjQSkHhFFmym6ySK7DOYJjZlgqXeo1oYKwVhRs X-Received: by 2002:a05:6a00:1307:b0:681:d247:8987 with SMTP id j7-20020a056a00130700b00681d2478987mr18290905pfu.17.1691088598441; Thu, 03 Aug 2023 11:49:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691088598; cv=none; d=google.com; s=arc-20160816; b=bgJjAWMcc+SdnEbns5FSDTTtZZsOI/gAJTI2le7xX6o6FcE5Li66BaPMAZERG4l4DJ e/XrdnzlGAJ8p90ySkCOaf92KDEiy5NDShwj+Fkfk1WuwwjvS4RflxNEX4wMMTq9Pl69 UA5JoqnC8ygoGeDeZdBgK1p4HtttrHpZB5Qoy2ujyTIWAPDQiW46VHSb4k/JrFFWNh68 zVbF8SMOOirOOu+1sFjZDSxDiGtwWBrfl3PK29mbPK13xYYaYttqqbTGDngJLe+PTl62 Xf6Fe6iEW0Tn8nd05GjEm5mEAFGlh+cfekHxCJjjUCJXZkFXKyLLCjbLv3jsV6OrAiaW kdzw== 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=TjzTeeAYoRqI2DJTIkjv88Qu/jSGbeP0vPjW5k918lM=; fh=TSIUzfHoMbtlq9AZT2KN2c7+//wIJMQ4+yn9Y1L5788=; b=nKxiKMDWmAz8t6eKT69mMkRIMZhBu9w+R4AmytMurvfmRolqxpnjdnBiTpk5q3BIUZ fEhqTPXiLoZ1xZs6HIpQDk5dHnCLABKZHLjZFNIJhyrSx4QMMWkMkImdr72TxG2T5wd2 0nA+soOpNQGQFTRP1JqwJd3emRZxD8gFc2aqtNqC2uu+DjHCIV/wyTbNapV8tKfNLdDE LiGer8aQO8EEAZs353lBS0r/CTlqSjAVgKFAmMIckgZ/lQaeYwnr3jJMKElrx7m4Nvgt BNAo0hE5Gzsc3TPXPHP1rPIBs4xDhWj0UJ6eyUmqMArwJRYvWwBQbEMiwUTWmZtlaH3x osNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CUrkmNM3; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q24-20020a63d618000000b0055c853ecc4dsi374969pgg.693.2023.08.03.11.49.43; Thu, 03 Aug 2023 11:49:58 -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=@kernel.org header.s=k20201202 header.b=CUrkmNM3; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231288AbjHCSQv (ORCPT + 99 others); Thu, 3 Aug 2023 14:16:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230284AbjHCSQu (ORCPT ); Thu, 3 Aug 2023 14:16:50 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D581E6B; Thu, 3 Aug 2023 11:16:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1FBFA61E59; Thu, 3 Aug 2023 18:16:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4DF71C433C7; Thu, 3 Aug 2023 18:16:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691086608; bh=jHElnSoIwa9PxqE0kOuribt4l2JQm4atAORM+XiqKXw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CUrkmNM33tsmjwf5s3/3SgDi3sohBFaejHQ29wPnGblVeGTpkVP4dw6ptwP5rUf52 bJSPuSDA4dXyZN72xMkSDJ6OaFoO173j1o0L/17vDP4dkgqBuskZYwqIquSsxyz3RC wCWX2/drF2IX8rTb0TLskYJJSnSOdfGBxqmqJBlDjrO3IS+r86TmR+OF/Q8BpYZqVi Q2n/dbQQnUh5kGlWjFnlBpgtKfcpckUbVCKAUvCrdySzjp/dv5MDTITafunfNOvGxE 3v+lyjRY19RaHE1ZyNoROaK2c8hsj9ouZh9WJbEv8yCLsCANRL+ss2Yhq040Y7FakV MQU1jo2tOUBQA== Date: Thu, 3 Aug 2023 20:16:41 +0200 From: Christian Brauner To: Christoph Hellwig Cc: Al Viro , Jan Kara , Chris Mason , Josef Bacik , David Sterba , Theodore Ts'o , 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: <20230803-unsterblich-hinbekommen-55b083eead3f@brauner> References: <20230802154131.2221419-1-hch@lst.de> <20230802154131.2221419-10-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 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,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 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 > --- Looks good to me, Reviewed-by: Christian Brauner