diff options
author | Christoph Hellwig <hch@lst.de> | 2014-04-16 03:44:59 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-04-16 16:15:25 -0400 |
commit | 12120077b2612a243d158605640cd39266906667 (patch) | |
tree | cb125d1bb2a3441d7b29aced0d6bfe6f6dfafe48 /block | |
parent | f88a164b72bd51fe4c89e06ac9939f2afe39c7ed (diff) |
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); | |||
2497 | /* | 2497 | /* |
2498 | * queue lock must be held | 2498 | * queue lock must be held |
2499 | */ | 2499 | */ |
2500 | static void blk_finish_request(struct request *req, int error) | 2500 | void blk_finish_request(struct request *req, int error) |
2501 | { | 2501 | { |
2502 | if (blk_rq_tagged(req)) | 2502 | if (blk_rq_tagged(req)) |
2503 | blk_queue_end_tag(req->q, req); | 2503 | blk_queue_end_tag(req->q, req); |
@@ -2523,6 +2523,7 @@ static void blk_finish_request(struct request *req, int error) | |||
2523 | __blk_put_request(req->q, req); | 2523 | __blk_put_request(req->q, req); |
2524 | } | 2524 | } |
2525 | } | 2525 | } |
2526 | EXPORT_SYMBOL(blk_finish_request); | ||
2526 | 2527 | ||
2527 | /** | 2528 | /** |
2528 | * blk_end_bidi_request - Complete a bidi request | 2529 | * blk_end_bidi_request - Complete a bidi request |