diff options
author | Christoph Hellwig <hch@lst.de> | 2018-05-31 20:11:40 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-06-01 16:38:21 +0300 |
commit | 131d08e122eaabae028378c0b4da688eb044c6af (patch) | |
tree | 1c48c6886d4e90d543fe738ba4c426531dcd637b /block/blk.h | |
parent | acddf3b308f6b6e23653de02e1abf98f402f1f12 (diff) | |
download | linux-131d08e122eaabae028378c0b4da688eb044c6af.tar.xz |
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.h')
-rw-r--r-- | block/blk.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/block/blk.h b/block/blk.h index ab5ec2dadc7b..8d23aea96ce9 100644 --- a/block/blk.h +++ b/block/blk.h @@ -232,6 +232,7 @@ static inline void elv_deactivate_rq(struct request_queue *q, struct request *rq } int elevator_init(struct request_queue *); +int elevator_init_mq(struct request_queue *q); void elevator_exit(struct request_queue *, struct elevator_queue *); int elv_register_queue(struct request_queue *q); void elv_unregister_queue(struct request_queue *q); |