Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AD74CC433FE for ; Mon, 21 Nov 2022 07:03:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229455AbiKUHDd (ORCPT ); Mon, 21 Nov 2022 02:03:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbiKUHDc (ORCPT ); Mon, 21 Nov 2022 02:03:32 -0500 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB79D29808 for ; Sun, 20 Nov 2022 23:03:31 -0800 (PST) Received: by verein.lst.de (Postfix, from userid 2407) id 3F97368AA6; Mon, 21 Nov 2022 08:03:29 +0100 (CET) Date: Mon, 21 Nov 2022 08:03:28 +0100 From: Christoph Hellwig To: Al Viro Cc: Christoph Hellwig , Jens Axboe , Eric Biggers , linux-block@vger.kernel.org Subject: Re: untangle the request_queue refcounting from the queue kobject v2 Message-ID: <20221121070328.GB23563@lst.de> References: <20221114042637.1009333-1-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On Sat, Nov 19, 2022 at 03:00:39AM +0000, Al Viro wrote: > in scsi_alloc_sdev() possibly avoid leaking sdev->request_queue on the > second failure exit? It can't. > Shouldn't we do blk_mq_destroy_queue()/blk_put_queue() on that failure > exit? As far as I can tell: yes.