diff options
author | Max Gurtovoy <maxg@mellanox.com> | 2019-10-13 18:57:35 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-11-04 18:56:41 +0100 |
commit | 2dc3947b53f573e8a75ea9cbec5588df88ca502e (patch) | |
tree | 1423fc41c0bb78c998d648863b90d684c756e294 /drivers/nvme/host/multipath.c | |
parent | nvmet-rdma: add unlikely check at nvmet_rdma_map_sgl_keyed (diff) | |
download | linux-2dc3947b53f573e8a75ea9cbec5588df88ca502e.tar.xz linux-2dc3947b53f573e8a75ea9cbec5588df88ca502e.zip |
nvme: introduce "Command Aborted By host" status code
Fix the status code of canceled requests initiated by the host according
to TP4028 (Status Code 0x371):
"Command Aborted By host: The command was aborted as a result of host
action (e.g., the host disconnected the Fabric connection)."
Also in a multipath environment, unless otherwise specified, errors of
this type (path related) should be retried using a different path, if
one is available.
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/nvme/host/multipath.c')
-rw-r--r-- | drivers/nvme/host/multipath.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvme/host/multipath.c b/drivers/nvme/host/multipath.c index 30de7efef003..103c04fa7746 100644 --- a/drivers/nvme/host/multipath.c +++ b/drivers/nvme/host/multipath.c @@ -95,6 +95,7 @@ void nvme_failover_req(struct request *req) } break; case NVME_SC_HOST_PATH_ERROR: + case NVME_SC_HOST_ABORTED_CMD: /* * Temporary transport disruption in talking to the controller. * Try to send on a new path. |