diff options
author | Christoph Hellwig <hch@lst.de> | 2018-01-12 03:53:06 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-01-12 19:01:40 +0100 |
commit | 20e4d813931961fe26d26a1e98b3aba6ec00b130 (patch) | |
tree | b6ba68628816661204010388c68416be56ceefb7 /block/bfq-iosched.c | |
parent | genirq/affinity: assign vectors to all possible CPUs (diff) | |
download | linux-20e4d813931961fe26d26a1e98b3aba6ec00b130.tar.xz linux-20e4d813931961fe26d26a1e98b3aba6ec00b130.zip |
blk-mq: simplify queue mapping & schedule with each possisble CPU
The previous patch assigns interrupt vectors to all possible CPUs, so
now hctx can be mapped to possible CPUs, this patch applies this fact
to simplify queue mapping & schedule so that we don't need to handle
CPU hotplug for dealing with physical CPU plug & unplug. With this
simplication, we can work well on physical CPU plug & unplug, which
is a normal use case for VM at least.
Make sure we allocate blk_mq_ctx structures for all possible CPUs, and
set hctx->numa_node for possible CPUs which are mapped to this hctx. And
only choose the online CPUs for schedule.
Reported-by: Christian Borntraeger <borntraeger@de.ibm.com>
Tested-by: Christian Borntraeger <borntraeger@de.ibm.com>
Tested-by: Stefan Haberland <sth@linux.vnet.ibm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Fixes: 4b855ad37194 ("blk-mq: Create hctx for each present CPU")
(merged the three into one because any single one may not work, and fix
selecting online CPUs for scheduler)
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/bfq-iosched.c')
0 files changed, 0 insertions, 0 deletions