Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1752346rdh; Tue, 26 Sep 2023 02:24:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF4rlVncwwkCLWSdBpd6ykRMnepOAwYElmPFUq2X0j7C0gyCfBfMqgijBE9RECetk/tZJE5 X-Received: by 2002:a05:6358:99a9:b0:142:e357:e777 with SMTP id j41-20020a05635899a900b00142e357e777mr11016755rwb.25.1695720296715; Tue, 26 Sep 2023 02:24:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695720296; cv=none; d=google.com; s=arc-20160816; b=WyNaMhN9/Zg7dwYnT5R20UamhmfQ+obk2XpEIlBejaYl1uS08T6VO8wCfOK9slPbNM ca2r/YgXQ5yMLrIOKqCLXdOqVsMKWVlwcXRJkyrwHXTsbB51h7xFirUU/YqFlBybD1X4 iLq8g2zFYw0V49EBZnUnjVZJA3tQu8EgjojYUbJ2XllcJiUD5QAVD1G49+ob/5EGvvxQ 5roVskHlpUCnVk3vBqd+FiWCZrbGxbxI9LUBEUSH9j1HEyovNSW57R8fXfTNNLioEsSl 8hu6BEE/HNLZmrweSQLrongCeUTyZGoYH+plBKWMfRyPZXHcVI1lKQd2YR4jPzCitmgC wEOQ== 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=lmsLZlFnNWVTYa2jL20VGeNU10/9btuVk90bYel4FVE=; fh=66mb79Gf37u/q3crvEUnUfQHFulvExs4yfAjQnYEkvI=; b=041MpYYd8f1NL5It8zeQq83ePxNc0+4/QJ+ngGaOIIYt8MryUxrqNuyPUP0zNtctxv LQIHspw/kE8QD5XpVexUgfij7iw5WgBhZRSyM65gY3haeladhaDQ/cAJDiA/oCEhEERH Pa7pI29YbV3vVh6bfe3GxgORkE5+n4IhVyTr+ZUfbLXvnyBRYD8L/Mcn984SEV3yshMX mMVnHbeXyTLHkkBzMPmW4np23B2Pl5rR6Jvyu0UnRQw5MBpvgTKNUIry1BK1lZ4hXvm5 zz6OI3iMrNNje7TgCvBLdCRkftHpZwoZ7GaqiX0T0Pc/FXjoxmziFy4lsASkXFMI9pVi yMyw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id bs10-20020a63280a000000b00565f4166f4bsi11676156pgb.284.2023.09.26.02.24.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 02:24:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 5B337827A72C; Tue, 26 Sep 2023 02:24:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234156AbjIZJYm (ORCPT + 99 others); Tue, 26 Sep 2023 05:24:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234177AbjIZJYl (ORCPT ); Tue, 26 Sep 2023 05:24:41 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F91F12A; Tue, 26 Sep 2023 02:24:34 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id E3A3768AA6; Tue, 26 Sep 2023 11:24:27 +0200 (CEST) Date: Tue, 26 Sep 2023 11:24:27 +0200 From: Christoph Hellwig To: Alan Stern Cc: Christoph Hellwig , Christian Brauner , Al Viro , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Fenghua Yu , Reinette Chatre , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Dennis Dalessandro , Tejun Heo , Trond Myklebust , Anna Schumaker , Kees Cook , Damien Le Moal , Naohiro Aota , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, linux-rdma@vger.kernel.org, linux-nfs@vger.kernel.org, linux-hardening@vger.kernel.org, cgroups@vger.kernel.org Subject: Re: [PATCH 10/19] USB: gadget/legacy: remove sb_mutex Message-ID: <20230926092427.GC12504@lst.de> References: <20230913111013.77623-1-hch@lst.de> <20230913111013.77623-11-hch@lst.de> <7f839be1-4898-41ad-8eda-10d5a0350bdf@rowland.harvard.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7f839be1-4898-41ad-8eda-10d5a0350bdf@rowland.harvard.edu> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 26 Sep 2023 02:24:54 -0700 (PDT) On Wed, Sep 13, 2023 at 12:10:56PM -0400, Alan Stern wrote: > On Wed, Sep 13, 2023 at 08:10:04AM -0300, Christoph Hellwig wrote: > > Creating new a new super_block vs freeing the old one for single instance > > file systems is serialized by the wait for SB_DEAD. > > > > Remove the superfluous sb_mutex. > > > > Signed-off-by: Christoph Hellwig > > --- > > You might mention that this is essentially a reversion of commit > d18dcfe9860e ("USB: gadgetfs: Fix race between mounting and > unmounting"). The difference we have now is that sb creation waits for the old one to go way, but I'll add a notice on all that.