summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorDaniel Wagner <wagi@kernel.org>2026-10-14 09:46:43 +0200
committerKeith Busch <kbusch@kernel.org>2026-10-21 13:28:27 -0700
commit36ede1aa85d5d74c39ed375a906f6eadb15cee5b (patch)
tree263b2cf4bf37d3e1e22433f2c17ab25eeeadf1e2 /tools/lib/python
parent99fd0cbae84988e0af34784aa18ddd51ae094ade (diff)
nvme-fabrics: clear the poll map if no poll queues are mapped
blk_mq_alloc_tag_set sets the nr_queues of every map to nr_hw_queues. When nr_poll_queues is set but no queues are left for polling, nvmf_map_queues skips the poll map and leaves it this way, with all CPUs mapped to hctx 0. The queue then claims poll support, polled I/O ends up on hctx 0, which isn't a poll queue, and hctx 0 is marked as a poll hctx, so even the Connect command of the first I/O queue is marked as polled. Clear the poll map when no poll queues are mapped, so polled I/O is rejected with -EOPNOTSUPP. Fixes: 1a9460cef571 ("nvme-tcp: support simple polling") Fixes: 5651cd3c4336 ("nvme-rdma: fix queue mapping when queue count is limited") Reviewed-by: Hannes Reinecke <hare@kernel.org> Tested-by: Maurizio Lombardi <mlombard@redhat.com> Signed-off-by: Daniel Wagner <wagi@kernel.org> Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions