nvme: introduce "Command Aborted By host" status code
authorMax Gurtovoy <maxg@mellanox.com>
Sun, 13 Oct 2019 16:57:35 +0000 (19:57 +0300)
committerJens Axboe <axboe@kernel.dk>
Mon, 4 Nov 2019 17:56:41 +0000 (10:56 -0700)
commit2dc3947b53f573e8a75ea9cbec5588df88ca502e
tree1423fc41c0bb78c998d648863b90d684c756e294
parent59534b9d606e7f566970a6f8621c6022f7c19ff1
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>
drivers/nvme/host/core.c
drivers/nvme/host/multipath.c
include/linux/nvme.h