blk-mq: remove redundant insert case in blk_mq_make_request()
authorhuhai <huhai@kylinos.cn>
Wed, 16 May 2018 14:21:21 +0000 (08:21 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 16 May 2018 14:22:47 +0000 (08:22 -0600)
commit8fa9f556451a6796dfa11e8da040f57f79f2f090
tree49c57c29f811e5652faca404cc1a49d6a6a27534
parentda3c6efea5b975a2ba341a5681b778a82443788c
blk-mq: remove redundant insert case in blk_mq_make_request()

We can use blk_mq_sched_insert_request() even if we don't have
an IO scheduler attached, since that case will end up being
exactly the same as what blk_mq_queue_io() was doing now.

Signed-off-by: huhai <huhai@kylinos.cn>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c