block: split the blk-mq case from elevator_init
authorChristoph Hellwig <hch@lst.de>
Thu, 31 May 2018 17:11:40 +0000 (19:11 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 1 Jun 2018 13:38:21 +0000 (07:38 -0600)
commit131d08e122eaabae028378c0b4da688eb044c6af
tree1c48c6886d4e90d543fe738ba4c426531dcd637b
parentacddf3b308f6b6e23653de02e1abf98f402f1f12
block: split the blk-mq case from elevator_init

There is almost no shared logic, which leads to a very confusing code
flow.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Tested-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c
block/blk.h
block/elevator.c