blk-mq: use HCTX_TYPE_DEFAULT but not 0 to index blk_mq_tag_set->map
authorDongli Zhang <dongli.zhang@oracle.com>
Wed, 27 Feb 2019 13:35:01 +0000 (21:35 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 28 Feb 2019 20:57:32 +0000 (13:57 -0700)
commit7d76f8562f4c42a5515741375790843fe4b8df83
tree818e650939f1436e2e335e61d3ce5324e89c6454
parent5b88a17cfdeba75e0092bab2c79aaf7d9e7db482
blk-mq: use HCTX_TYPE_DEFAULT but not 0 to index blk_mq_tag_set->map

Replace set->map[0] with set->map[HCTX_TYPE_DEFAULT] to avoid hardcoding.

Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c