diff options
author | Keith Busch <kbusch@kernel.org> | 2020-05-29 17:51:59 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-05-29 19:21:59 +0300 |
commit | 7b11eab041dacfeaaa6d27d9183b247a995bc16d (patch) | |
tree | c4376ec288a34bd594e4662807e4dce958e40817 /include/linux/blk-mq.h | |
parent | dc35ada4251f183137ee3a524543c9329d7a4fa2 (diff) | |
download | linux-7b11eab041dacfeaaa6d27d9183b247a995bc16d.tar.xz |
blk-mq: blk-mq: provide forced completion method
Drivers may need to bypass error injection for error recovery. Rename
__blk_mq_complete_request() to blk_mq_force_complete_rq() and export
that function so drivers may skip potential fake timeouts after they've
reclaimed lost requests.
Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/blk-mq.h')
-rw-r--r-- | include/linux/blk-mq.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h index d7307795439a..856bb10993cf 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h @@ -494,6 +494,7 @@ void blk_mq_requeue_request(struct request *rq, bool kick_requeue_list); void blk_mq_kick_requeue_list(struct request_queue *q); void blk_mq_delay_kick_requeue_list(struct request_queue *q, unsigned long msecs); bool blk_mq_complete_request(struct request *rq); +void blk_mq_force_complete_rq(struct request *rq); bool blk_mq_bio_list_merge(struct request_queue *q, struct list_head *list, struct bio *bio, unsigned int nr_segs); bool blk_mq_queue_stopped(struct request_queue *q); |