diff options
author | Warner Losh <imp@FreeBSD.org> | 2022-01-09 17:13:05 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2022-01-09 17:13:05 +0000 |
commit | 85056a56f3bbd26fdbaf0f045b527acac7199589 (patch) | |
tree | 494641301c3669615ef7848079b7379cf2b18340 | |
parent | 2fb0569f1ff58209420ed9c5500476ad7d93e702 (diff) | |
download | src-85056a56f3bbd26fdbaf0f045b527acac7199589.tar.gz src-85056a56f3bbd26fdbaf0f045b527acac7199589.zip |
cam: Include more statuses as errors for CAM_IO_STATS
Tag more status return values as an error for the
I/O. CAM_SCSI_STATUS_ERROR is returned for medium errors, for example,
but the counts weren't increased. The added errors all indicate a
problem with the device request.
Sponsored by: Netflix
PR: 260257
Feedback from: ken
Reviewed by: asomers
Differential Revision: https://reviews.freebsd.org/D33783
-rw-r--r-- | sys/cam/scsi/scsi_da.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c index 8dde9d5b056e..2a7b09adc21e 100644 --- a/sys/cam/scsi/scsi_da.c +++ b/sys/cam/scsi/scsi_da.c @@ -6002,6 +6002,8 @@ daerror(union ccb *ccb, u_int32_t cam_flags, u_int32_t sense_flags) case CAM_REQ_TERMIO: case CAM_UNREC_HBA_ERROR: case CAM_DATA_RUN_ERR: + case CAM_SCSI_STATUS_ERROR: + case CAM_ATA_STATUS_ERROR: softc->errors++; break; default: |