diff options
author | Sagi Grimberg <sagi@grimberg.me> | 2019-08-03 04:04:12 +0300 |
---|---|---|
committer | Sagi Grimberg <sagi@grimberg.me> | 2019-09-12 18:50:45 +0300 |
commit | 1c0d12c0b1a1a09fdfbc8e00c456581d04829915 (patch) | |
tree | 014583ce022030580e2fec7e88d91aea9043d529 /drivers/irqchip/irq-gic-v3-its-pci-msi.c | |
parent | 0a67b5a926e63ff5492c3c675eab5900580d056d (diff) | |
download | linux-1c0d12c0b1a1a09fdfbc8e00c456581d04829915.tar.xz |
nvme: fail cancelled commands with NVME_SC_HOST_PATH_ERROR
NVME_SC_ABORT_REQ means that the request was aborted due to
an abort command received. In our case, this is a transport
cancellation, so host pathing error is much more appropriate.
Also, convert NVME_SC_HOST_PATH_ERROR to BLK_STS_TRANSPORT for
such that callers can understand that the status is a transport
related error. This will be used by the ns scanning code to
understand if it got an error from the controller or that the
controller happens to be unreachable by the transport.
Reviewed-by: Minwoo Im <minwoo.im.dev@gmail.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Diffstat (limited to 'drivers/irqchip/irq-gic-v3-its-pci-msi.c')
0 files changed, 0 insertions, 0 deletions