From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 CEC745227 for ; Mon, 18 Sep 2023 11:41:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3F2FC433C7; Mon, 18 Sep 2023 11:41:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695037293; bh=k5whRDb703pFSoW6vBuZiC/uLzAA5qCrmwIb0niMTaw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Aq8BDUPTeZUbSi6r80BUN/6MwH1BAmiHYY4SHfZ7onFlzdMGfEKZJql8eJgFd8kcU VSUGCximU6yLeulyz9sCP0KhTKpgfeEuARR1qg4bJb/2c3E2+Aaq/FI7E9KE3mXGPA mMkzDccqY/MfireMOZxTAFoqx04P3/eEENahXkm++IxXno8NknhrffAlyV8usX4nkg fRFkfnnveLguRIcv9+LTO4c7dt1uE+rem3E3BlUrXtrNJpo5JMLyLk57Bw4w+y0H+Q CpPUMugfzFQ2rqTkkxwCEL03tDYtT39/xBNsmqTbEmsL2yuFfD5IL+86z+BlChrW+f YsxfJTuf+MXoQ== Date: Mon, 18 Sep 2023 14:41:29 +0300 From: Leon Romanovsky To: Christoph Hellwig Cc: 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 06/19] qibfs: use simple_release_fs Message-ID: <20230918114129.GA103601@unreal> References: <20230913111013.77623-1-hch@lst.de> <20230913111013.77623-7-hch@lst.de> 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: <20230913111013.77623-7-hch@lst.de> On Wed, Sep 13, 2023 at 08:10:00AM -0300, Christoph Hellwig wrote: > qibfs currently has convoluted code to allow registering HCAs while qibfs > is not mounted and vice versa. Switch to using simple_release_fs every > time an entry is added to pin the fs instance and remove all the boiler > plate code. > > Signed-off-by: Christoph Hellwig > --- > drivers/infiniband/hw/qib/qib.h | 4 +- > drivers/infiniband/hw/qib/qib_fs.c | 105 ++++++--------------------- > drivers/infiniband/hw/qib/qib_init.c | 32 +++----- > 3 files changed, 36 insertions(+), 105 deletions(-) > Thanks, Reviewed-by: Leon Romanovsky