Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Jan 2022 20:00:03 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 260257] CAM_IO_STATS does not track MEDIUM ERRORs
Message-ID:  <bug-260257-227-f6ifYs2ue5@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-260257-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-260257-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260257

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_int3=
2_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

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-260257-227-f6ifYs2ue5>