scsi: sd: Convert SCSI errors to PR errors
authorMike Christie <michael.christie@oracle.com>
Tue, 22 Nov 2022 03:26:02 +0000 (21:26 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 1 Dec 2022 03:22:23 +0000 (03:22 +0000)
commit04b3c8c0025a1d91a0e133e9b2734a002960f472
tree751ee1508cf0aec27ccfe5830ca939d89601a7dc
parentc9293c1199ecd3cfa07931ec3630f37dba1ca1b8
scsi: sd: Convert SCSI errors to PR errors

This converts the SCSI 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-4-michael.christie@oracle.com
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/sd.c
include/scsi/scsi.h