]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: just check the status code type in nvme_is_path_error
authorChristoph Hellwig <hch@lst.de>
Tue, 18 Aug 2020 07:11:31 +0000 (09:11 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 21 Aug 2020 23:14:28 +0000 (17:14 -0600)
commit37e52e53d2b1788ed8dead2172a5df30396768f0
treec3152b20cedce1fc1f01d71a902092aa9e46c4cd
parent33ad5b89b7e98f4f6f459600aa5240e77f131389
nvme: just check the status code type in nvme_is_path_error

Check the SCT sub-field for a path related status instead of enumerating
invididual status code.  As of NVMe 1.4 this adds "Internal Path Error"
and "Controller Pathing Error" to the list, but it also future proofs for
additional status codes added to the category.

Suggested-by: Chao Leng <lengchao@huawei.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/nvme.h