diff options
author | Christoph Hellwig <hch@lst.de> | 2018-05-31 19:11:40 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-06-01 07:38:21 -0600 |
commit | 131d08e122eaabae028378c0b4da688eb044c6af (patch) | |
tree | 1c48c6886d4e90d543fe738ba4c426531dcd637b /block/blk-mq.c | |
parent | acddf3b308f6b6e23653de02e1abf98f402f1f12 (diff) |
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>
Diffstat (limited to 'block/blk-mq.c')
-rw-r--r-- | block/blk-mq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index 858d6edff4d3..6332940ca118 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -2573,7 +2573,7 @@ struct request_queue *blk_mq_init_allocated_queue(struct blk_mq_tag_set *set, if (!(set->flags & BLK_MQ_F_NO_SCHED)) { int ret; - ret = elevator_init(q); + ret = elevator_init_mq(q); if (ret) return ERR_PTR(ret); } |