summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorDongli Zhang <dongli.zhang@oracle.com>2019-03-12 02:31:56 +0100
committerJens Axboe <axboe@kernel.dk>2019-04-08 16:08:29 +0200
commit9bc00750f5b6a33764918be4f80745d936c95f1a (patch)
tree21bcd45d30cd5c96f383eebd6dbb95660cb95441 /drivers/block
parentblock: sed-opal: rename next to execute_steps (diff)
downloadlinux-9bc00750f5b6a33764918be4f80745d936c95f1a.tar.xz
linux-9bc00750f5b6a33764918be4f80745d936c95f1a.zip
virtio_blk: replace 0 by HCTX_TYPE_DEFAULT to index blk_mq_tag_set->map
Use HCTX_TYPE_DEFAULT instead of 0 to avoid hardcoding. Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/virtio_blk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c
index 4bc083b7c9b5..bed6035be4cc 100644
--- a/drivers/block/virtio_blk.c
+++ b/drivers/block/virtio_blk.c
@@ -691,7 +691,8 @@ static int virtblk_map_queues(struct blk_mq_tag_set *set)
{
struct virtio_blk *vblk = set->driver_data;
- return blk_mq_virtio_map_queues(&set->map[0], vblk->vdev, 0);
+ return blk_mq_virtio_map_queues(&set->map[HCTX_TYPE_DEFAULT],
+ vblk->vdev, 0);
}
#ifdef CONFIG_VIRTIO_BLK_SCSI