From: Christoph Hellwig Subject: Re: [PATCH 10/19] USB: gadget/legacy: remove sb_mutex Date: Tue, 26 Sep 2023 11:24:27 +0200 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 Return-path: Content-Disposition: inline In-Reply-To: <7f839be1-4898-41ad-8eda-10d5a0350bdf-nwvwT67g6+6dFdvTe/nMLpVzexx5G7lz@public.gmane.org> List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 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.