mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
a80f36cc64
commit
9bc00750f5
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue