diff options
author | Christoph Hellwig <hch@lst.de> | 2014-04-16 09:44:59 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-04-16 22:15:25 +0200 |
commit | 12120077b2612a243d158605640cd39266906667 (patch) | |
tree | cb125d1bb2a3441d7b29aced0d6bfe6f6dfafe48 /block | |
parent | blk-mq: rename mq_flush_work struct request member (diff) | |
download | linux-12120077b2612a243d158605640cd39266906667.tar.xz linux-12120077b2612a243d158605640cd39266906667.zip |
block: export blk_finish_request
This allows to mirror the blk-mq code flow for more a more readable I/O
completion handler in SCSI.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index 90b6e63b8769..c4269701cb4f 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -2497,7 +2497,7 @@ EXPORT_SYMBOL_GPL(blk_unprep_request); /* * queue lock must be held */ -static void blk_finish_request(struct request *req, int error) +void blk_finish_request(struct request *req, int error) { if (blk_rq_tagged(req)) blk_queue_end_tag(req->q, req); @@ -2523,6 +2523,7 @@ static void blk_finish_request(struct request *req, int error) __blk_put_request(req->q, req); } } +EXPORT_SYMBOL(blk_finish_request); /** * blk_end_bidi_request - Complete a bidi request |