diff options
author | Dongli Zhang <dongli.zhang@oracle.com> | 2019-03-12 09:31:56 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-04-08 08:08:29 -0600 |
commit | 9bc00750f5b6a33764918be4f80745d936c95f1a (patch) | |
tree | 21bcd45d30cd5c96f383eebd6dbb95660cb95441 /drivers/block | |
parent | a80f36cc64f09956686f3729bf3eb65b7abfc32e (diff) | |
download | linux-9bc00750f5b6a33764918be4f80745d936c95f1a.tar.gz linux-9bc00750f5b6a33764918be4f80745d936c95f1a.tar.bz2 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.c | 3 |
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 |