]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: remove code for dealing with remapping queue
authorMing Lei <ming.lei@redhat.com>
Sun, 8 Apr 2018 09:48:14 +0000 (17:48 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 10 Apr 2018 14:38:46 +0000 (08:38 -0600)
commit7b17d1d0c6526061b038297c9ec1b775db757f84
treef67363b026b429b79416d9f171d7df9ecca529d4
parent9ed7a15ed2b2a8407afda1152125828ae91a6fc4
blk-mq: remove code for dealing with remapping queue

Firstly, from commit 283a20aabf28 ("blk-mq: Create hctx for each present CPU),
blk-mq doesn't remap queue any more after CPU topo is changed.

Secondly, set->nr_hw_queues can't be bigger than nr_cpu_ids, and now we map
all possible CPUs to hw queues, so at least one CPU is mapped to each hctx.

So queue mapping has became static and fixed just like percpu variable, and
we don't need to handle queue remapping any more.

Cc: Stefan Haberland <sth@linux.vnet.ibm.com>
Tested-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c