diff options
author | Dongli Zhang <dongli.zhang@oracle.com> | 2019-03-12 02:00:28 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-03-19 20:29:10 +0100 |
commit | 99bbf484c6df831290ef27435fd39f45beb4462e (patch) | |
tree | 5c47fbe55e333c5041bc2e68b4752fc303c7f967 /drivers/scsi/scsi_lib.c | |
parent | scsi: ufs: fix a missing check of devm_reset_control_get (diff) | |
download | linux-99bbf484c6df831290ef27435fd39f45beb4462e.tar.xz linux-99bbf484c6df831290ef27435fd39f45beb4462e.zip |
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: Dongli Zhang <dongli.zhang@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/scsi_lib.c')
-rw-r--r-- | drivers/scsi/scsi_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 20189675677a..985cfc217524 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c @@ -1759,7 +1759,7 @@ static int scsi_map_queues(struct blk_mq_tag_set *set) if (shost->hostt->map_queues) 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) |