]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
nvme-pci: ensure we're polling a polled queue
authorKeith Busch <kbusch@kernel.org>
Tue, 10 Feb 2026 17:26:54 +0000 (09:26 -0800)
committerKeith Busch <kbusch@kernel.org>
Fri, 13 Feb 2026 14:47:24 +0000 (06:47 -0800)
commit166e31d7dbf6aa44829b98aa446bda5c9580f12a
treeec17f537f0eeb16edd8b9adf1432c264f90718b4
parentbbdaa8c17cae18b977f4509911d7a390aa8a6597
nvme-pci: ensure we're polling a polled queue

A user can change the polled queue count at run time. There's a brief
window during a reset where a hipri task may try to poll that queue
before the block layer has updated the queue maps, which would race with
the now interrupt driven queue and may cause double completions.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/pci.c