summaryrefslogtreecommitdiffstats
path: root/include/linux/blk-mq.h
diff options
context:
space:
mode:
authorJens Axboe2018-05-30 09:26:07 +0200
committerJens Axboe2018-05-30 18:43:58 +0200
commit9c5587346490ad4355e8de6ae402b76e55c411d5 (patch)
treec3d4ef3bb13f175030152a1721ad1d33c0aa7389 /include/linux/blk-mq.h
parentblock: remove parent device reference from struct bsg_class_device (diff)
downloadkernel-qcow2-linux-9c5587346490ad4355e8de6ae402b76e55c411d5.tar.gz
kernel-qcow2-linux-9c5587346490ad4355e8de6ae402b76e55c411d5.tar.xz
kernel-qcow2-linux-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.h3
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);