Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Sep 2010 17:22:07 +0000 (UTC)
From:      "Kenneth D. Merry" <ken@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r212616 - head/sys/dev/mps
Message-ID:  <201009141722.o8EHM7Vw087609@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009141722.o8EHM7Vw087609>