OSDN Git Service

nvme: Convert NVMe errors to PR errors
authorMike Christie <michael.christie@oracle.com>
Tue, 22 Nov 2022 03:26:03 +0000 (21:26 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 1 Dec 2022 03:22:23 +0000 (03:22 +0000)
commit7fb42780d06c3417b21c3f31b6b99fd8e9ca6084
treee3dbf9118acbc3b9520b5a229030ee39f14bb915
parent04b3c8c0025a1d91a0e133e9b2734a002960f472
nvme: Convert NVMe errors to PR errors

This converts the NVMe errors we commonly see during PR handling to PR_STS
errors or -Exyz errors. pr_ops callers can then handle SCSI and NVMe errors
without knowing the device types.

Signed-off-by: Mike Christie <michael.christie@oracle.com>
Link: https://lore.kernel.org/r/20221122032603.32766-5-michael.christie@oracle.com
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/nvme/host/core.c