blk-mq: figure out correct numa node for hw queue
authorMing Lei <ming.lei@redhat.com>
Tue, 8 Mar 2022 07:32:14 +0000 (15:32 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 9 Mar 2022 00:57:19 +0000 (17:57 -0700)
commit4d805131abf219e0019715f1cf29763c613aae07
tree00a038e60304dd28278ed31050169d64d91edbce
parent15729ff8143f8135b03988a100a19e66d7cb7ecd
blk-mq: figure out correct numa node for hw queue

The current code always uses default queue map and hw queue index
for figuring out the numa node for hw queue, this way isn't correct
because blk-mq supports three queue maps, and the correct queue map
should be used for the specified hw queue.

Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20220308073219.91173-2-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c