]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: let dm-mpath distinguish nvme error codes
authorJunxiong Guan <guanjunxiong@huawei.com>
Fri, 21 Apr 2017 10:59:07 +0000 (12:59 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 21 Apr 2017 14:41:56 +0000 (16:41 +0200)
commitff587a9cf45e9dee27aee7b8c1e11259a7182a44
treea79eccba5ffc641c0488479110f6244c89b3731f
parent9685759618adbafa46ced8b09bedac89fdb73209
nvme: let dm-mpath distinguish nvme error codes

Currently most IOs which return the nvme error codes are retried on
the other path if those IOs returns EIO from NVMe driver. This
patch let Multipath distinguish nvme media error codes and some
generic or cmd-specific nvme error codes so that multipath will
not retry those kinds of IO, to save bandwidth.

Signed-off-by: Junxiong Guan <guanjunxiong@huawei.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c