blk-mq: code clean-up by adding an API to clear set->mq_map
authorMinwoo Im <minwoo.im.dev@gmail.com>
Mon, 2 Jul 2018 14:46:43 +0000 (23:46 +0900)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 Jul 2018 15:07:53 +0000 (09:07 -0600)
commit0da73d00ca111a6175825a00d94dbeae185f6d7e
tree9885b0b946b98ecf4b4ea37d62b8e507df5f8a52
parent5efac89c849849ad3a959224eb711f9c311e5bde
blk-mq: code clean-up by adding an API to clear set->mq_map

set->mq_map is now currently cleared if something goes wrong when
establishing a queue map in blk-mq-pci.c.  It's also cleared before
updating a queue map in blk_mq_update_queue_map().

This patch provides an API to clear set->mq_map to make it clear.

Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-pci.c
block/blk-mq.c
block/blk-mq.h