]> www.infradead.org Git - users/jedix/linux-maple.git/commit
NVMe: Use a retryable error code on reset
authorKeith Busch <keith.busch@intel.com>
Mon, 4 Jan 2016 16:10:56 +0000 (09:10 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 1 Jun 2017 20:40:54 +0000 (13:40 -0700)
commitdb51ddd3c746c1ca517c64a6b916945d25ff9bb6
tree026a959c291590dd8bbfac35acaf0d279eefd26f
parentbec8174a62e0432adde10cce5d01697f10972edd
NVMe: Use a retryable error code on reset

A negative status has the "do not retry" bit set, which makes it not
retryable.  Use a fake status that can potentially be retried on reset.

An aborted command's status is overridden by the timeout handler so
that it won't be retried, which is necessary to keep initialization from
getting into a reset loop.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
(cherry picked from commit 1d49c38c4865c596b01b31a52540275c1bb383e7)

Orabug: 25130845

Signed-off-by: Ashok Vairavan <ashok.vairavan@oracle.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/nvme/host/pci.c