cam: Log more error codes

Log CAM_DEV_NOT_THERE status CCBs because they get dropped if a drive
disappears and these requests timeout or are cancelled. It's useful to
know the outstanding commands for failure analysis. Log
CAM_NVME_STATUS_ERROR status CCBs to bring in NVMe errors (this will be
more important in future commits that expand the information logged).

Sponsored by:		Netflix
Differential Revision:	https://reviews.freebsd.org/D41168
This commit is contained in:
Warner Losh
2023-08-01 14:51:10 -06:00
parent 5a7e48dddf
commit cf0a543f1f
+2
View File
@@ -1909,6 +1909,8 @@ cam_periph_error(union ccb *ccb, cam_flags camflags,
case CAM_SCSI_STATUS_ERROR:
case CAM_ATA_STATUS_ERROR:
case CAM_SMP_STATUS_ERROR:
case CAM_DEV_NOT_THERE:
case CAM_NVME_STATUS_ERROR:
devctl_err++;
break;
default: