From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 66C6BD3942D for ; Thu, 2 Apr 2026 13:57:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Content-Type:In-Reply-To:References:Message-ID:Date:Subject:CC: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=wuthZuZJNuIVCbef4TvR92fybPm79mBQ8LikDhPWnf0=; b=smxDkGgjR5Q4OaPov67UGSg/Yq mlFzkiDWHXqVJtPFaGKf/P44CFjBLeyL1vKeq3x/KKm8y+suRRqCeCFIvUhL8oCxEiBv7Gr08p8a3 DHpkzN6ntuzxTpkFqx0k46XNNsA4Fni24fcccnzowAEA8cr6lUQNYSlt+VismDZfP8poffiylaxPk Kmf1szmVhGzIzdY+NqofVpIQDc+7Ues8i+1zu+GB9sGxgXQEjfuBdWF90FdGuIh79WxQ90b/dffEE tyDWPcw+cLpD4FTRX5TrYMT5mrovqHB5zQXVCCRgktEYw2lcaFGgMpmJNSfb25UiLUQEltlovnZGb sjgppj8g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1w8IY6-00000000DyM-37R0; Thu, 02 Apr 2026 13:57:30 +0000 Received: from iad-out-011.esa.us-east-1.outbound.mail-perimeter.amazon.com ([54.211.126.101]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1w8IXy-00000000Dr2-4072; Thu, 02 Apr 2026 13:57:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.de; i=@amazon.de; q=dns/txt; s=amazoncorp2; t=1775138242; x=1806674242; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version:content-transfer-encoding; bh=wuthZuZJNuIVCbef4TvR92fybPm79mBQ8LikDhPWnf0=; b=MJiQWUxGSCd0/eUCM472sCWCD8OJJOwi7HZHYTqu9mbjDrloNjDzWLu5 639JeW4ZmF7Sj71KtUIw3r/0Cd6LLi/ROtO4BrpB/BU4a2N4A7bnGU+hF DunipXlJqLa45hiZK92Is0FnjzxT7AFwA9lMmbxtL52RxLIWkJBzKt6Gm z94K3nhVekhToIz89aSNEIPpnDbrbqb8KWnwcwHcdOKpAZL5OKr3AAmig i+LyakpSMaaWH1A6Um+kc6xAdDgSUWim8CBreEgwejCrgCWTiw1NufD5c TFkRL9seB00KKwQzQOvQv5P1lXH8zDzSQ9u0N5mEqvnZ//wZdgn0qXhZa Q==; X-CSE-ConnectionGUID: wmue6bv0TJ6AjraC9JMWAw== X-CSE-MsgGUID: +gr5tpNzQMafIjWemEgWdA== X-IronPort-AV: E=Sophos;i="6.23,155,1770595200"; d="scan'208";a="15265777" Received: from ip-10-4-3-150.ec2.internal (HELO smtpout.naws.us-east-1.prod.farcaster.email.amazon.dev) ([10.4.3.150]) by internal-iad-out-011.esa.us-east-1.outbound.mail-perimeter.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Apr 2026 13:57:17 +0000 Received: from EX19MTAUEC001.ant.amazon.com [52.94.133.134:1848] by smtpin.naws.us-east-1.prod.farcaster.email.amazon.dev [10.0.95.220:2525] with esmtp (Farcaster) id 5af4ab1e-2771-496a-a456-0cc6e54b38d6; Thu, 2 Apr 2026 13:57:17 +0000 (UTC) X-Farcaster-Flow-ID: 5af4ab1e-2771-496a-a456-0cc6e54b38d6 Received: from EX19D012UEC001.ant.amazon.com (10.252.135.206) by EX19MTAUEC001.ant.amazon.com (10.252.135.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.2562.37; Thu, 2 Apr 2026 13:57:17 +0000 Received: from EX19D012UEC003.ant.amazon.com (10.252.135.160) by EX19D012UEC001.ant.amazon.com (10.252.135.206) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.2562.37; Thu, 2 Apr 2026 13:57:16 +0000 Received: from EX19D012UEC003.ant.amazon.com ([fe80::67ea:859:1e17:25a9]) by EX19D012UEC003.ant.amazon.com ([fe80::67ea:859:1e17:25a9%3]) with mapi id 15.02.2562.037; Thu, 2 Apr 2026 13:57:16 +0000 From: "Heyne, Maximilian" To: "stable@vger.kernel.org" CC: "Heyne, Maximilian" , Christoph Hellwig , Sagi Grimberg , Chaitanya Kulkarni , "Keith Busch" , Jens Axboe , Hector Martin , Sven Peter , Alyssa Rosenzweig , "James E.J. Bottomley" , "Martin K. Petersen" , Alim Akhtar , Avri Altman , Bart Van Assche , Sasha Levin , Peter Wang , Greg Kroah-Hartman , Sanjeev Yadav , Adrian Hunter , Seunghwan Baek , "Brian Kao" , Seunghui Lee , Wonkon Kim , Hannes Reinecke , Ming Lei , "linux-block@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "asahi@lists.linux.dev" , "linux-arm-kernel@lists.infradead.org" , "linux-nvme@lists.infradead.org" , "linux-scsi@vger.kernel.org" Subject: [PATCH 6.1.y v2 3/6] nvme-pci: remove an extra queue reference Thread-Topic: [PATCH 6.1.y v2 3/6] nvme-pci: remove an extra queue reference Thread-Index: AQHcwqid6cK14LT21EWoDH9t6D61vA== Date: Thu, 2 Apr 2026 13:57:16 +0000 Message-ID: <20260402-virtual-london-e865225a@mheyne-amazon> References: <20260402-moral-jockey-f072379b@mheyne-amazon> In-Reply-To: <20260402-moral-jockey-f072379b@mheyne-amazon> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.13.235.223] Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260402_065723_183672_BD8B313D X-CRM114-Status: GOOD ( 10.71 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Christoph Hellwig [ Upstream commit 7dcebef90d35de13a326f765dd787538880566f9 ] Now that blk_mq_destroy_queue does not release the queue reference, there is no need for a second admin queue reference to be held by the nvme_dev. Signed-off-by: Christoph Hellwig Reviewed-by: Sagi Grimberg Reviewed-by: Chaitanya Kulkarni Reviewed-by: Keith Busch Link: https://lore.kernel.org/r/20221018135720.670094-4-hch@lst.de Signed-off-by: Jens Axboe Stable-dep-of: 03b3bcd319b3 ("nvme: fix admin request_queue lifetime") Signed-off-by: Maximilian Heyne --- drivers/nvme/host/pci.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index 727585f580362..13c0098939ec0 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -1782,7 +1782,6 @@ static void nvme_dev_remove_admin(struct nvme_dev *de= v) */ nvme_start_admin_queue(&dev->ctrl); blk_mq_destroy_queue(dev->ctrl.admin_q); - blk_put_queue(dev->ctrl.admin_q); blk_mq_free_tag_set(&dev->admin_tagset); } } @@ -1811,11 +1810,6 @@ static int nvme_pci_alloc_admin_tag_set(struct nvme_= dev *dev) dev->ctrl.admin_q =3D NULL; return -ENOMEM; } - if (!blk_get_queue(dev->ctrl.admin_q)) { - nvme_dev_remove_admin(dev); - dev->ctrl.admin_q =3D NULL; - return -ENODEV; - } return 0; } = -- = 2.50.1 Amazon Web Services Development Center Germany GmbH Tamara-Danz-Str. 13 10243 Berlin Geschaeftsfuehrung: Christof Hellmis, Andreas Stieger Eingetragen am Amtsgericht Charlottenburg unter HRB 257764 B Sitz: Berlin Ust-ID: DE 365 538 597