Commit f688012c authored by Keith Busch's avatar Keith Busch Committed by Yang Yingliang
Browse files

blk-mq: blk-mq: provide forced completion method



mainline inclusion
from mainline-5.8-rc1
commit 7b11eab0
category: bugfix
bugzilla: 175150
CVE: NA

---------------------------

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: default avatarKeith Busch <kbusch@kernel.org>
Reviewed-by: default avatarDaniel Wagner <dwagner@suse.de>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>

Conflicts:
	block/blk-mq.c
	include/linux/blk-mq.h
	[ Non bugfix patch c7bb9ad1("block: get rid of
	  q->softirq_done_fn()") is not applied. ]

Signed-off-by: default avatarZhihao Cheng <chengzhihao1@huawei.com>
Reviewed-by: default avatarHou Tao <houtao1@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 0875a4c4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment