Author: ken
Date: Tue Sep 14 17:22:06 2010
New Revision: 212616
URL: http://svn.freebsd.org/changeset/base/212616

Log:
  MFp4: (//depot/projects/mps/...)
  
  Report data overruns properly.
  
  Submitted by: scottl

Modified:
  head/sys/dev/mps/mps_sas.c

Modified: head/sys/dev/mps/mps_sas.c
==============================================================================
--- head/sys/dev/mps/mps_sas.c  Tue Sep 14 16:22:22 2010        (r212615)
+++ head/sys/dev/mps/mps_sas.c  Tue Sep 14 17:22:06 2010        (r212616)
@@ -1219,11 +1219,9 @@ mpssas_scsiio_complete(struct mps_softc 
                ccb->ccb_h.status = CAM_REQ_CMP;
                break;
        case MPI2_IOCSTATUS_SCSI_DATA_OVERRUN:
-               /*
-                * XXX any way to report this?
-                */
+               /* resid is ignored for this condition */
                ccb->csio.resid = 0;
-               ccb->ccb_h.status = CAM_REQ_CMP;
+               ccb->ccb_h.status = CAM_DATA_RUN_ERR;
                break;
        case MPI2_IOCSTATUS_SCSI_INVALID_DEVHANDLE:
        case MPI2_IOCSTATUS_SCSI_DEVICE_NOT_THERE:
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to