]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit - block/blk-mq.c
blk-mq: allow software queue to map to multiple hardware queues
authorJens Axboe <axboe@kernel.dk>
Mon, 29 Oct 2018 19:13:29 +0000 (13:13 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 7 Nov 2018 20:44:59 +0000 (13:44 -0700)
commitf31967f0e455d08d3ea1d2f849bf62dafc92dbf4
tree22fbc79b5ba286e2add8f995a8cfa9f211200192
parentf9afca4d367b8c915f28d29fcaba7460640403ff
blk-mq: allow software queue to map to multiple hardware queues

The mapping used to be dependent on just the CPU location, but
now it's a tuple of (type, cpu) instead. This is a prep patch
for allowing a single software queue to map to multiple hardware
queues. No functional changes in this patch.

This changes the software queue count to an unsigned short
to save a bit of space. We can still support 64K-1 CPUs,
which should be enough. Add a check to catch a wrap.

Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-sched.c
block/blk-mq.c
block/blk-mq.h
block/kyber-iosched.c
include/linux/blk-mq.h