diff options
author | Jens Axboe <axboe@kernel.dk> | 2018-05-30 15:26:07 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-05-30 10:43:58 -0600 |
commit | 9c5587346490ad4355e8de6ae402b76e55c411d5 (patch) | |
tree | c3d4ef3bb13f175030152a1721ad1d33c0aa7389 /include/linux/blk-mq.h | |
parent | 5de815a7eedfacf593817ef34634eaa9b75a1482 (diff) | |
download | linux-stable-9c5587346490ad4355e8de6ae402b76e55c411d5.tar.gz linux-stable-9c5587346490ad4355e8de6ae402b76e55c411d5.tar.bz2 linux-stable-9c5587346490ad4355e8de6ae402b76e55c411d5.zip |
blk-mq: abstract out blk-mq-sched rq list iteration bio merge helper
No functional changes in this patch, just a prep patch for utilizing
this in an IO scheduler.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Diffstat (limited to 'include/linux/blk-mq.h')
-rw-r--r-- | include/linux/blk-mq.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h index ebc34a5686dc..fb355173f3c7 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h @@ -259,7 +259,8 @@ void blk_mq_add_to_requeue_list(struct request *rq, bool at_head, void blk_mq_kick_requeue_list(struct request_queue *q); void blk_mq_delay_kick_requeue_list(struct request_queue *q, unsigned long msecs); void blk_mq_complete_request(struct request *rq); - +bool blk_mq_bio_list_merge(struct request_queue *q, struct list_head *list, + struct bio *bio); bool blk_mq_queue_stopped(struct request_queue *q); void blk_mq_stop_hw_queue(struct blk_mq_hw_ctx *hctx); void blk_mq_start_hw_queue(struct blk_mq_hw_ctx *hctx); |