nvme: Translate more status codes to blk_status_t
authorKeith Busch <kbusch@kernel.org>
Thu, 5 Dec 2019 19:50:44 +0000 (04:50 +0900)
committerJens Axboe <axboe@kernel.dk>
Fri, 10 Jan 2020 15:55:50 +0000 (08:55 -0700)
commit35038bffa87da282010b91108cadd13238bb5bbd
tree577fdb3ccabc42b1c38e8ecbe93c710c7a91d335
parent83c9c547168e8b914ea6398430473a4de68c52cc
nvme: Translate more status codes to blk_status_t

Decode interrupted command and not ready namespace nvme status codes to
BLK_STS_TARGET. These are not generic IO errors and should use a non-path
specific error so that it can use the non-failover retry path.

Reported-by: John Meneghini <John.Meneghini@netapp.com>
Cc: Hannes Reinecke <hare@suse.de>
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