Skip to content

Commit 76451d7

Browse files
Christoph Hellwigaxboe
authored andcommitted
blk-mq: map queues to all present CPUs
We already do this for PCI mappings, and the higher level code now expects that CPU on/offlining doesn't have an affect on the queue mappings. Signed-off-by: Christoph Hellwig <[email protected]> Tested-by: Max Gurtovoy <[email protected]> Reviewed-by: Max Gurtovoy <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 765e40b commit 76451d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

block/blk-mq-cpumap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
static int cpu_to_queue_index(unsigned int nr_queues, const int cpu)
1818
{
1919
/*
20-
* Non online CPU will be mapped to queue index 0.
20+
* Non present CPU will be mapped to queue index 0.
2121
*/
22-
if (!cpu_online(cpu))
22+
if (!cpu_present(cpu))
2323
return 0;
2424
return cpu % nr_queues;
2525
}

0 commit comments

Comments
 (0)