]> git.ipfire.org Git - thirdparty/linux.git/commit
blk-mq: blk-mq: provide forced completion method
authorKeith Busch <kbusch@kernel.org>
Fri, 29 May 2020 14:51:59 +0000 (07:51 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 29 May 2020 16:21:59 +0000 (10:21 -0600)
commit7b11eab041dacfeaaa6d27d9183b247a995bc16d
treec4376ec288a34bd594e4662807e4dce958e40817
parentdc35ada4251f183137ee3a524543c9329d7a4fa2
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>
block/blk-mq.c
include/linux/blk-mq.h