summaryrefslogtreecommitdiffstats
path: root/block/blk-mq-virtio.c
diff options
context:
space:
mode:
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;