From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 A77583F20F0; Wed, 20 May 2026 17:05:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779296707; cv=none; b=k+NxigVXgmBJpo3E6ioR339UTHZ0liNJMrrmhAFa4b9wVyluA0nDKxHpTSyU0oGffpcDJUferUGO1u/xfxFNiuwBo4i6qE7w8+2nOG3uMpXAwcDbVUP6SyT3vqQRV6E3adrOQIiDSuR4vWncQQoIR1LCQH6PfkmLOpGwZL8AAOo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779296707; c=relaxed/simple; bh=xBRu8gQqbs28eze0o8goWQPyASksOTKAlFNi3AuVBqI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uVYvxzWr1f2ft4UHq9v2mYy3UCHFg5G6OYO8jPktZ8tMTok0hrQGhjCHuiwPu1ZmSfPivANJFlpeLTnRIXfoRPNnlYqt903rE18hJe2eC1yqWzCN/Y/f/8IGj4B9mVFXRkHUcIQPu/bp/3DXWRAEY/axdCUwk04kN16l9Oq7hRY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MdpKQP6/; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="MdpKQP6/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 174331F000E9; Wed, 20 May 2026 17:05:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779296706; bh=I4D4TJZ0gEUCkL69ouBM94wrPlwPkbwOdt7iBd4Zdmg=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=MdpKQP6/CHQI/ZfvuF/4z+/6+hqQT0Ps4NxpkhkYB29urUp+R4QN5JjMjfOjY11IQ FCkRNHlf2h0rZ/W+bcKXJ8J7K/aPWMljFQFnrsyjO3Hko3KCwHag6VV0F6vivARVif MDTqhfvqsI4ma7gepHpJhSjI4+2JFiIsi8/hrZ10= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Christoph Hellwig , Kanchan Joshi , Keith Busch , Sasha Levin Subject: [PATCH 7.0 0900/1146] nvme-pci: fix missed admin queue sq doorbell write Date: Wed, 20 May 2026 18:19:10 +0200 Message-ID: <20260520162208.603221747@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260520162148.390695140@linuxfoundation.org> References: <20260520162148.390695140@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.0-stable review patch. If anyone has any objections, please let me know. ------------------ From: Keith Busch [ Upstream commit 1cc4cdae2a3b7730d462d69e30f213fd2efe7807 ] We can batch admin commands submitted through io_uring_cmd passthrough, which means bd->last may be false and skips the doorbell write to aggregate multiple commands per write. If a subsequent command can't be dispatched for whatever reason, we have to provide the blk-mq ops' commit_rqs callback in order to ensure we properly update the doorbell. Fixes: 58e5bdeb9c2b ("nvme: enable uring-passthrough for admin commands") Reviewed-by: Christoph Hellwig Reviewed-by: Kanchan Joshi Signed-off-by: Keith Busch Signed-off-by: Sasha Levin --- drivers/nvme/host/pci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index db5fc9bf66272..4c052ed18cb8d 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -2241,6 +2241,7 @@ static int nvme_create_queue(struct nvme_queue *nvmeq, int qid, bool polled) static const struct blk_mq_ops nvme_mq_admin_ops = { .queue_rq = nvme_queue_rq, .complete = nvme_pci_complete_rq, + .commit_rqs = nvme_commit_rqs, .init_hctx = nvme_admin_init_hctx, .init_request = nvme_pci_init_request, .timeout = nvme_timeout, -- 2.53.0