提交 d8e43700 编写于 作者: K Keith Busch 提交者: Yang Yingliang

nvme: force complete cancelled requests

mainline inclusion
from mainline-5.8-rc1
commit 3382a567
category: bugfix
bugzilla: 175150
CVE: NA

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

Use blk_mq_foce_complete_rq() to bypass fake timeout error injection so
that request reclaim may proceed.
Signed-off-by: NKeith Busch <kbusch@kernel.org>
Reviewed-by: NJohannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: NMing Lei <ming.lei@redhat.com>
Reviewed-by: NDaniel Wagner <dwagner@suse.de>
Signed-off-by: NJens Axboe <axboe@kernel.dk>

Conflicts:
	drivers/nvme/host/core.c
	[ 7baa8572("blk-mq-tag: change busy_iter_fn to return
	  whether to continue or not") is not applied. ]
Signed-off-by: NZhihao Cheng <chengzhihao1@huawei.com>
Reviewed-by: NHou Tao <houtao1@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 f688012c
......@@ -299,7 +299,7 @@ void nvme_cancel_request(struct request *req, void *data, bool reserved)
return;
nvme_req(req)->status = NVME_SC_HOST_ABORTED_CMD;
blk_mq_complete_request(req);
blk_mq_force_complete_rq(req);
}
EXPORT_SYMBOL_GPL(nvme_cancel_request);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册