summaryrefslogtreecommitdiff
path: root/drivers/nvme/host/trace.h
diff options
context:
space:
mode:
authorChao Leng <lengchao@huawei.com>2021-02-04 10:55:11 +0300
committerChristoph Hellwig <hch@lst.de>2021-02-10 18:38:03 +0300
commitdda3248e7fc306e0ce3612ae96bdd9a36e2ab04f (patch)
treee9a5238e7c3553652340e0b99f0a2dfae48efefd /drivers/nvme/host/trace.h
parent83fba8c8114748a18e20391565cfdfdf8466075c (diff)
downloadlinux-dda3248e7fc306e0ce3612ae96bdd9a36e2ab04f.tar.xz
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: Chao Leng <lengchao@huawei.com> [hch: renamed, added a return value to clean up the callers a bit] Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/host/trace.h')
0 files changed, 0 insertions, 0 deletions