summaryrefslogtreecommitdiffstats
path: root/block/blk-mq-virtio.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2018-10-24 13:16:11 -0600
committerJens Axboe <axboe@kernel.dk>2018-11-07 13:45:00 -0700
commit843477d4cc5c4bb4e346c561ecd3b9d0bd67e8c8 (patch)
tree27787556ce50efa174296b61b688cfb52d4bdb2b /block/blk-mq-virtio.c
parent3110fc79606fb6003949246c6fb325dd43445273 (diff)
downloadlinux-843477d4cc5c4bb4e346c561ecd3b9d0bd67e8c8.tar.gz
linux-843477d4cc5c4bb4e346c561ecd3b9d0bd67e8c8.tar.bz2
linux-843477d4cc5c4bb4e346c561ecd3b9d0bd67e8c8.zip
blk-mq: initial support for multiple queue maps
Add a queue offset to the tag map. This enables users to map iteratively, for each queue map type they support. Bump maximum number of supported maps to 2, we're now fully able to support more than 1 map. Reviewed-by: Hannes Reinecke <hare@suse.com> Reviewed-by: Keith Busch <keith.busch@intel.com> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-mq-virtio.c')
-rw-r--r--block/blk-mq-virtio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-mq-virtio.c b/block/blk-mq-virtio.c
index 661fbfef480f..370827163835 100644
--- a/block/blk-mq-virtio.c
+++ b/block/blk-mq-virtio.c
@@ -44,7 +44,7 @@ int blk_mq_virtio_map_queues(struct blk_mq_queue_map *qmap,
goto fallback;
for_each_cpu(cpu, mask)
- qmap->mq_map[cpu] = queue;
+ qmap->mq_map[cpu] = qmap->queue_offset + queue;
}
return 0;