From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 F092763AF; Tue, 26 Sep 2023 09:24:35 +0000 (UTC) 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> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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=-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 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.