diff options
author | Omar Sandoval <osandov@fb.com> | 2017-04-14 11:00:00 +0300 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-04-14 23:06:55 +0300 |
commit | 5b72727299307e53888277729f980ab03264dac8 (patch) | |
tree | 45aafb62dea9f167e6d86c0e8738030b1982ea76 /block | |
parent | 229a92873f3afc20b0d91aaaec08cbc11689dd8b (diff) | |
download | linux-5b72727299307e53888277729f980ab03264dac8.tar.xz |
blk-mq: export helpers
blk_mq_finish_request() is required for schedulers that define their own
put_request(). blk_mq_run_hw_queue() is required for schedulers that
hold back requests to be run later.
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-mq.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index e536dacfae4c..7138cd98146e 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -368,6 +368,7 @@ void blk_mq_finish_request(struct request *rq) { blk_mq_finish_hctx_request(blk_mq_map_queue(rq->q, rq->mq_ctx->cpu), rq); } +EXPORT_SYMBOL_GPL(blk_mq_finish_request); void blk_mq_free_request(struct request *rq) { @@ -1183,6 +1184,7 @@ void blk_mq_run_hw_queue(struct blk_mq_hw_ctx *hctx, bool async) { __blk_mq_delay_run_hw_queue(hctx, async, 0); } +EXPORT_SYMBOL(blk_mq_run_hw_queue); void blk_mq_run_hw_queues(struct request_queue *q, bool async) { |