[PATCH 3/4] nvme: just check the status code type in nvme_is_path_error
Mike Snitzer
snitzer at redhat.com
Mon Aug 17 11:11:16 EDT 2020
On Mon, Aug 17 2020 at 4:15am -0400,
Christoph Hellwig <hch at lst.de> wrote:
> 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 at huawei.com>
> Signed-off-by: Christoph Hellwig <hch at lst.de>
Ah, this is why you carried the duplicate checks in 2/4's
nvme_is_path_error and nvme_is_ana_error, makes sense.
Reviewed-by: Mike Snitzer <snitzer at redhat.com>
More information about the Linux-nvme
mailing list