]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nvme-pci: acquire cq_poll_lock in nvme_poll_irqdisable
authorKeith Busch <kbusch@kernel.org>
Thu, 8 May 2025 14:57:06 +0000 (16:57 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 May 2025 12:10:02 +0000 (14:10 +0200)
commit960946915988c5ffb9becb35771a9254ecc95527
tree89fcbd63b4204ce011b7ff2083588c470783e05a
parent6fc167d45fc3c871a3fd20c0cb8a647a46336799
nvme-pci: acquire cq_poll_lock in nvme_poll_irqdisable

[ Upstream commit 3d8932133dcecbd9bef1559533c1089601006f45 ]

We need to lock this queue for that condition because the timeout work
executes per-namespace and can poll the poll CQ.

Reported-by: Hannes Reinecke <hare@kernel.org>
Closes: https://lore.kernel.org/all/20240902130728.1999-1-hare@kernel.org/
Fixes: a0fa9647a54e ("NVMe: add blk polling support")
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Daniel Wagner <wagi@kernel.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/pci.c