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>
Showing
- block/blk-mq-sched.c 1 addition, 1 deletionblock/blk-mq-sched.c
- block/blk-mq.c 16 additions, 6 deletionsblock/blk-mq.c
- block/blk-mq.h 1 addition, 1 deletionblock/blk-mq.h
- block/kyber-iosched.c 3 additions, 3 deletionsblock/kyber-iosched.c
- include/linux/blk-mq.h 2 additions, 1 deletioninclude/linux/blk-mq.h
Loading
Please register or sign in to comment