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 02:47:53 +0000 (19:47 -0700)
commit807d8d2aa57855d062061355ac9312f337d1b1b0
tree6b537af8755aa5fe13ef98c65488378f8d39464b
parent884d6f89311e3d18ced3cbfdaa5e843ba07e1063
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