summaryrefslogtreecommitdiff
path: root/drivers/block
diff options
context:
space:
mode:
authorDongli Zhang <dongli.zhang@oracle.com>2019-03-12 04:31:56 +0300
committerJens Axboe <axboe@kernel.dk>2019-04-08 17:08:29 +0300
commit9bc00750f5b6a33764918be4f80745d936c95f1a (patch)
tree21bcd45d30cd5c96f383eebd6dbb95660cb95441 /drivers/block
parenta80f36cc64f09956686f3729bf3eb65b7abfc32e (diff)
downloadlinux-9bc00750f5b6a33764918be4f80745d936c95f1a.tar.xz
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