提交 99bbf484 编写于 作者: D Dongli Zhang 提交者: Martin K. Petersen

scsi: core: Use HCTX_TYPE_DEFAULT for blk_mq_tag_set->map

Use HCTX_TYPE_DEFAULT instead of 0 to avoid hardcoding.
Signed-off-by: NDongli Zhang <dongli.zhang@oracle.com>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 63a06181
...@@ -1759,7 +1759,7 @@ static int scsi_map_queues(struct blk_mq_tag_set *set) ...@@ -1759,7 +1759,7 @@ static int scsi_map_queues(struct blk_mq_tag_set *set)
if (shost->hostt->map_queues) if (shost->hostt->map_queues)
return shost->hostt->map_queues(shost); return shost->hostt->map_queues(shost);
return blk_mq_map_queues(&set->map[0]); return blk_mq_map_queues(&set->map[HCTX_TYPE_DEFAULT]);
} }
void __scsi_init_queue(struct Scsi_Host *shost, struct request_queue *q) void __scsi_init_queue(struct Scsi_Host *shost, struct request_queue *q)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册