]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: separate number of hardware queues from nr_cpu_ids
authorJens Axboe <axboe@kernel.dk>
Mon, 29 Oct 2018 19:25:27 +0000 (13:25 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 7 Nov 2018 20:44:59 +0000 (13:44 -0700)
commitba0dc09afe3d576a0276adecfd18adc01ae27ec2
treed0277e8fe433b046a5d72d8ffb739db2bc1b3012
parentc4efed07c6b224cb69260cfc77b59eb9d85f7149
blk-mq: separate number of hardware queues from nr_cpu_ids

With multiple maps, nr_cpu_ids is no longer the maximum number of
hardware queues we support on a given devices. The initializer of
the tag_set can have set ->nr_hw_queues larger than the available
number of CPUs, since we can exceed that with multiple queue maps.

Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c