svn commit: r237549 - stable/9/sys/dev/twa

Alexander Motin mav at FreeBSD.org
Mon Jun 25 07:09:37 UTC 2012


Author: mav
Date: Mon Jun 25 07:09:36 2012
New Revision: 237549
URL: http://svn.freebsd.org/changeset/base/237549

Log:
  MFC r237460:
  Return CAM_SEL_TIMEOUT and CAM_DEV_NOT_THERE instead of CAM_TID_INVALID
  and CAM_LUN_INVALID for case of missing devices. In removes tons of error
  messages from CAM during bus scans.
  
  Reported and tested by:	Mike Tancsa <mike at sentex.net>

Modified:
  stable/9/sys/dev/twa/tw_osl_cam.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/dev/   (props changed)

Modified: stable/9/sys/dev/twa/tw_osl_cam.c
==============================================================================
--- stable/9/sys/dev/twa/tw_osl_cam.c	Mon Jun 25 07:06:58 2012	(r237548)
+++ stable/9/sys/dev/twa/tw_osl_cam.c	Mon Jun 25 07:09:36 2012	(r237549)
@@ -678,9 +678,9 @@ tw_osl_complete_io(struct tw_cl_req_hand
 			ccb->ccb_h.status = CAM_REQ_CMP;
 		else {
 			if (req_pkt->status & TW_CL_ERR_REQ_INVALID_TARGET)
-				ccb->ccb_h.status |= CAM_TID_INVALID;
+				ccb->ccb_h.status |= CAM_SEL_TIMEOUT;
 			else if (req_pkt->status & TW_CL_ERR_REQ_INVALID_LUN)
-				ccb->ccb_h.status |= CAM_LUN_INVALID;
+				ccb->ccb_h.status |= CAM_DEV_NOT_THERE;
 			else if (req_pkt->status & TW_CL_ERR_REQ_SCSI_ERROR)
 				ccb->ccb_h.status |= CAM_SCSI_STATUS_ERROR;
 			else if (req_pkt->status & TW_CL_ERR_REQ_BUS_RESET)


More information about the svn-src-stable-9 mailing list