Skip to content
Commit dda3248e authored by Chao Leng's avatar Chao Leng Committed by Christoph Hellwig
Browse files

nvme: introduce a nvme_host_path_error helper



When using nvme native multipathing, if a path related error occurs
during ->queue_rq, the request needs to be completed with
NVME_SC_HOST_PATH_ERROR so that the request can be failed over.

Introduce a helper to complete the command from ->queue_rq in a wait
that invokes nvme_complete_rq.

Signed-off-by: default avatarChao Leng <lengchao@huawei.com>
[hch: renamed, added a return value to clean up the callers a bit]
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 83fba8c8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment