diff options
author | Christoph Hellwig <hch@lst.de> | 2017-06-16 18:15:25 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-06-18 10:08:55 -0600 |
commit | 44e8c2bff80bb384a608406009948f90a78bf8a3 (patch) | |
tree | 416c4aea5fb5c635bdc94170b8fb14ab284f21a4 /block/blk-mq-sched.h | |
parent | 9f2107382636cf9a71951eb71ec04f2fb3641b37 (diff) | |
download | op-kernel-dev-44e8c2bff80bb384a608406009948f90a78bf8a3.zip op-kernel-dev-44e8c2bff80bb384a608406009948f90a78bf8a3.tar.gz |
blk-mq: refactor blk_mq_sched_assign_ioc
blk_mq_sched_assign_ioc now only handles the assigned of the ioc if
the schedule needs it (bfq only at the moment). The caller to the
per-request initializer is moved out so that it can be merged with
a similar call for the kyber I/O scheduler.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-mq-sched.h')
-rw-r--r-- | block/blk-mq-sched.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/block/blk-mq-sched.h b/block/blk-mq-sched.h index f34e6a5..e117edd 100644 --- a/block/blk-mq-sched.h +++ b/block/blk-mq-sched.h @@ -7,8 +7,7 @@ void blk_mq_sched_free_hctx_data(struct request_queue *q, void (*exit)(struct blk_mq_hw_ctx *)); -void blk_mq_sched_assign_ioc(struct request_queue *q, struct request *rq, - struct bio *bio); +void blk_mq_sched_assign_ioc(struct request *rq, struct bio *bio); void blk_mq_sched_request_inserted(struct request *rq); bool blk_mq_sched_try_merge(struct request_queue *q, struct bio *bio, |