diff options
author | Omar Sandoval <osandov@fb.com> | 2017-04-05 12:01:30 -0700 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-04-07 08:56:44 -0600 |
commit | 6917ff0b5bd4139e08a3f3146529dcb3b95ba7a6 (patch) | |
tree | c85db4362670bf263448883394bd43e9e89abede /block/blk-mq-sched.h | |
parent | 81380ca10778b99dce98940cfc993214712df335 (diff) | |
download | linux-stable-6917ff0b5bd4139e08a3f3146529dcb3b95ba7a6.tar.gz linux-stable-6917ff0b5bd4139e08a3f3146529dcb3b95ba7a6.tar.bz2 linux-stable-6917ff0b5bd4139e08a3f3146529dcb3b95ba7a6.zip |
blk-mq-sched: refactor scheduler initialization
Preparation cleanup for the next couple of fixes, push
blk_mq_sched_setup() and e->ops.mq.init_sched() into a helper.
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-mq-sched.h')
-rw-r--r-- | block/blk-mq-sched.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-mq-sched.h b/block/blk-mq-sched.h index a75b16b123f7..873f9af5a35b 100644 --- a/block/blk-mq-sched.h +++ b/block/blk-mq-sched.h @@ -32,7 +32,7 @@ void blk_mq_sched_move_to_dispatch(struct blk_mq_hw_ctx *hctx, struct list_head *rq_list, struct request *(*get_rq)(struct blk_mq_hw_ctx *)); -int blk_mq_sched_setup(struct request_queue *q); +int blk_mq_init_sched(struct request_queue *q, struct elevator_type *e); void blk_mq_sched_teardown(struct request_queue *q); int blk_mq_sched_init(struct request_queue *q); |