[Bug 260257] CAM_IO_STATS does not track MEDIUM ERRORs
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 260257] CAM_IO_STATS does not track MEDIUM ERRORs"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 05 Jan 2022 20:00:03 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260257 Robert Wing <rew@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rew@FreeBSD.org --- Comment #7 from Robert Wing <rew@FreeBSD.org> --- Wonder if the counter should be bumped when CAM_SCSI_STATUS_ERROR? something for context: diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c index df8791e4b23e..2d78c00dbb60 100644 --- a/sys/cam/scsi/scsi_da.c +++ b/sys/cam/scsi/scsi_da.c @@ -5994,20 +5994,21 @@ daerror(union ccb *ccb, u_int32_t cam_flags, u_int32_t sense_flags) #ifdef CAM_IO_STATS switch (ccb->ccb_h.status & CAM_STATUS_MASK) { case CAM_CMD_TIMEOUT: softc->timeouts++; break; case CAM_REQ_ABORTED: case CAM_REQ_CMP_ERR: case CAM_REQ_TERMIO: case CAM_UNREC_HBA_ERROR: case CAM_DATA_RUN_ERR: + case CAM_SCSI_STATUS_ERROR: softc->errors++; break; default: break; } #endif -- You are receiving this mail because: You are the assignee for the bug.