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 580BFD39418 for ; Thu, 2 Apr 2026 12:32:27 +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-ID:Content-Type:In-Reply-To:References:Message-ID:Date: Subject:CC:To:From:Reply-To:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=6w3HUVHSmjm01LKzbzqMd/c0WGfyb9c7ge6p63vHYQI=; b=A9U9fTrV6Xc6ufyNN//YNpZzhK hO3adcHXtPabac42iPtWyT0IGkLsplphFEazJAyKti1qkL4UCyZ578zlE2aV/aC4krXVnjvuAGMSM q/pNjXzJf2OKlDskTW3DAxKydXh5aNrFWJ/CNekYhm2r65zDQy2vGaK9nMfzrrNcX/BwFIYghauM1 ++D+yCJV+Yahm4NGXEOojw2hu0n+y9pJV5UIw+R2o7LzVxgfSlzq74WlFoj+9bG+L3FtfEJR1tX6G 9KRBFsp/PkMdUiP0rUBmb750cVTwxXwssnf0IxAFdKqONwewQF7iNQ85WjiTu1CVWkRCmvQQLGKx0 lIpsq9iw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1w8HDa-000000003aA-1S7K; Thu, 02 Apr 2026 12:32:14 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1w8HDX-000000003Zb-3xyo; Thu, 02 Apr 2026 12:32:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :Content-ID:Content-Type:In-Reply-To:References:Message-ID:Date:Subject:CC:To :From:Sender:Reply-To:Content-Description; bh=6w3HUVHSmjm01LKzbzqMd/c0WGfyb9c7ge6p63vHYQI=; b=JoUB0mt2XGL8nvLPEw1No/WYku Dn26sytuINi8eseG2cDlYjlVdey9/4Q4A30TEiW8lOjMTZ8nUXv8NmZwKkkDCDgVpV+ub8RnH4RoQ PBT9Ww/1cV2lFhtUBIkoKP3LLUIaWPCX7E+5aWQPe6EU/4u5LMvkks2pJ7ZcAqOSVWUdG1OkNwPfD 2it5Ke+pxlvm/DOS5x6R5jVoYYWYoypk2IUFLZSkDaYWLltqBSvk5ZQkxARG64oJAfEHKrET4PMbz JH8GSGFDm0nkb22aE5dbod9sbfLLHPVu5DheZUKpeFnQVwhg/V0Qnx9M9CwwlHHpwyeDQkwbfeBMD F+Jrf1Aw==; Received: from iad-out-010.esa.us-east-1.outbound.mail-perimeter.amazon.com ([34.197.254.9]) by desiato.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1w8HDU-00000002Rdn-0zEd; Thu, 02 Apr 2026 12:32:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.de; i=@amazon.de; q=dns/txt; s=amazoncorp2; t=1775133128; x=1806669128; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:mime-version: content-transfer-encoding; bh=6w3HUVHSmjm01LKzbzqMd/c0WGfyb9c7ge6p63vHYQI=; b=r7WUhpubgIut92bChOLlKprPBia/wOrvR2vPuycflDJ9tlfnfqIIJppp eDDbRONr1gXnIYWaLrXAGqE3FoURF2g9bUGs0x2y3XeMDK+uBcNWXWfET oOCeL4vl3+ycR7WO0sdZnduUFsuIAhMv4PtSyvuwVCoS5uIpQmR4KDP1u dyeqRVceiK31IVz5dfBcf3ieI+Scj2McdWixSyPTUpZXlxn/VJyhf4nt8 JRXDMJvlj1Yk0OoXg5TSu7NqEVpLFr7SUTIt1413fQ7arUbGJ9W7iyV20 cKHjh9Pya7KM+srjP04PQbQLlJ7uQaMViSGAsmKC7kNcCrJS+LponkGIC Q==; X-CSE-ConnectionGUID: DdekA+7kT0eMkTYJA1rRng== X-CSE-MsgGUID: /6glz+8BSwe83yXe9ZoY8A== X-IronPort-AV: E=Sophos;i="6.23,155,1770595200"; d="scan'208";a="15095409" Received: from ip-10-4-10-75.ec2.internal (HELO smtpout.naws.us-east-1.prod.farcaster.email.amazon.dev) ([10.4.10.75]) by internal-iad-out-010.esa.us-east-1.outbound.mail-perimeter.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Apr 2026 12:32:00 +0000 Received: from EX19MTAUEC002.ant.amazon.com [72.21.196.66:23526] by smtpin.naws.us-east-1.prod.farcaster.email.amazon.dev [10.0.8.197:2525] with esmtp (Farcaster) id aa9e9018-8b88-44d4-9916-7172c14268fc; Thu, 2 Apr 2026 12:32:00 +0000 (UTC) X-Farcaster-Flow-ID: aa9e9018-8b88-44d4-9916-7172c14268fc Received: from EX19D012UEC003.ant.amazon.com (10.252.135.160) by EX19MTAUEC002.ant.amazon.com (10.252.135.253) 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 12:32:00 +0000 Received: from EX19D012UEC003.ant.amazon.com (10.252.135.160) by EX19D012UEC003.ant.amazon.com (10.252.135.160) 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 12:31:59 +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 12:31:59 +0000 From: "Heyne, Maximilian" To: Fedor Pchelkin CC: Christoph Hellwig , Sagi Grimberg , "stable@vger.kernel.org" , Sven Peter , Chaitanya Kulkarni , Keith Busch , Jens Axboe , Hector Martin , Alyssa Rosenzweig , "James E.J. Bottomley" , "Martin K. Petersen" , Alim Akhtar , "Avri Altman" , Bart Van Assche , "Sasha Levin" , Peter Wang , "Greg Kroah-Hartman" , Seunghui Lee , Sanjeev Yadav , Wonkon Kim , Brian Kao , 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: Re: [PATCH 6.1.y 5/8] nvme-apple: remove an extra queue reference Thread-Topic: [PATCH 6.1.y 5/8] nvme-apple: remove an extra queue reference Thread-Index: AQHcwpyzTCv4ZXIhp0SsQfFW9ZSeHw== Date: Thu, 2 Apr 2026 12:31:59 +0000 Message-ID: <20260402-anti-cuba-1ea02cea@mheyne-amazon> References: <20260401-pliny-ashley-ff03a0b6@mheyne-amazon> <20260401232116-53765a086f3855a30962fb81-pchelkin@ispras> In-Reply-To: <20260401232116-53765a086f3855a30962fb81-pchelkin@ispras> 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="us-ascii" Content-ID: <772100EB31401D4090226323D02A6503@amazon.com> 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_133208_619301_8AB97E8A X-CRM114-Status: GOOD ( 27.41 ) 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 On Wed, Apr 01, 2026 at 11:45:57PM +0300, Fedor Pchelkin wrote: > Hello, > = > "Heyne, Maximilian" wrote: > > From: Christoph Hellwig > > = > > [ Upstream commit 941f7298c70c7668416e7845fa76eb72c07d966b ] > > = > > Now that blk_mq_destroy_queue does not release the queue reference, the= re > > is no need for a second admin queue reference to be held by the > > apple_nvme structure. > = > This patch is probably buggy in upstream. It removes extra reference > ->get, but doesn't remove the corresponding ->put which is located > inside apple_nvme_free_ctrl(). Now I'm seeing this as well. Has the same problem as the pci driver in 6.1 where blk_put_queue is called from nvme_free_ctrl() and again from apple_nvme_free_ctrl(). Thank you for catching this. I don't have the hardware to test this. Are you going to send a fix upstream? It's looks to be broken on master, too. > = > I'm reporting here currently just for the heads up - was looking at the > same nvme regression problem at 6.1.y, found this thread, and the > nvme-apple changes appeared suspicious. > = > nvme-apple patch is not required to fix the regression (this also holds > true for [PATCH 6.1.y 3/8] scsi: remove an extra queue reference). Maybe > they shouldn't go to stable. I think, I'll send a v2 of the patch set without these 2 patches. It's probably easier for Greg to apply. > = > That said, the other part of the backport series FWIW looks good to me, > and I've also verified it resolves the 6.1.y regression. You may leave a Tested-by if you want ;-) > = > Thanks. > = > > = > > Signed-off-by: Christoph Hellwig > > Reviewed-by: Sagi Grimberg > > Reviewed-by: Sven Peter > > Reviewed-by: Chaitanya Kulkarni > > Reviewed-by: Keith Busch > > Link: https://lore.kernel.org/r/20221018135720.670094-5-hch@lst.de > > Signed-off-by: Jens Axboe > > Signed-off-by: Maximilian Heyne > > --- > > drivers/nvme/host/apple.c | 9 --------- > > 1 file changed, 9 deletions(-) > > = > > diff --git a/drivers/nvme/host/apple.c b/drivers/nvme/host/apple.c > > index c5fc293c22123..c84ebfcfdeb88 100644 > > --- a/drivers/nvme/host/apple.c > > +++ b/drivers/nvme/host/apple.c > > @@ -1507,15 +1507,6 @@ static int apple_nvme_probe(struct platform_devi= ce *pdev) > > goto put_dev; > > } > > = > > - if (!blk_get_queue(anv->ctrl.admin_q)) { > > - nvme_start_admin_queue(&anv->ctrl); > > - blk_mq_destroy_queue(anv->ctrl.admin_q); > > - blk_put_queue(anv->ctrl.admin_q); > > - anv->ctrl.admin_q =3D NULL; > > - ret =3D -ENODEV; > > - goto put_dev; > > - } > > - > > nvme_reset_ctrl(&anv->ctrl); > > async_schedule(apple_nvme_async_probe, anv); > > = > > -- = > > 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