diff options
author | Jens Axboe <axboe@kernel.dk> | 2018-10-30 13:31:51 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-11-07 15:44:59 -0500 |
commit | 67cae4c948a5311121905a2a8740c50daf7f6478 (patch) | |
tree | e4d994179f16751b95f0080392844c6817a0e539 /block/blk-mq-sched.h | |
parent | ea4f995ee8b8f0578b3319949f2edd5d812fdb0a (diff) |
blk-mq: cleanup and improve list insertion
It's somewhat strange to have a list insertion function that
relies on the fact that the caller has mapped things correctly.
Pass in the hardware queue directly for insertion, which makes
for a much cleaner interface and implementation.
Reviewed-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
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 947f236b273d..7ff5671bf128 100644 --- a/block/blk-mq-sched.h +++ b/block/blk-mq-sched.h | |||
@@ -19,7 +19,7 @@ void blk_mq_sched_restart(struct blk_mq_hw_ctx *hctx); | |||
19 | 19 | ||
20 | void blk_mq_sched_insert_request(struct request *rq, bool at_head, | 20 | void blk_mq_sched_insert_request(struct request *rq, bool at_head, |
21 | bool run_queue, bool async); | 21 | bool run_queue, bool async); |
22 | void blk_mq_sched_insert_requests(struct request_queue *q, | 22 | void blk_mq_sched_insert_requests(struct blk_mq_hw_ctx *hctx, |
23 | struct blk_mq_ctx *ctx, | 23 | struct blk_mq_ctx *ctx, |
24 | struct list_head *list, bool run_queue_async); | 24 | struct list_head *list, bool run_queue_async); |
25 | 25 | ||