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)
commit392546aed22009060911f76b6ea24520e2f8b50f
treed0277e8fe433b046a5d72d8ffb739db2bc1b3012
parentb3c661b15d5ab11d982e58bee23e05c1780528a1
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