Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Oct 2012 19:59:22 +0000 (UTC)
From:      Jim Harris <jimharris@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r241382 - stable/8/sys/dev/tws
Message-ID:  <201210091959.q99JxMTd067643@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jimharris
Date: Tue Oct  9 19:59:22 2012
New Revision: 241382
URL: http://svn.freebsd.org/changeset/base/241382

Log:
  MFC r240901:
  
  Use CAM_SEL_TIMEOUT and CAM_DEV_NOT_THERE to report missing targets or
  LUNs respectively.  This removes a huge number of error messages
  from CAM during bus scans.

Modified:
  stable/8/sys/dev/tws/tws_cam.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/dev/   (props changed)
  stable/8/sys/dev/tws/   (props changed)

Modified: stable/8/sys/dev/tws/tws_cam.c
==============================================================================
--- stable/8/sys/dev/tws/tws_cam.c	Tue Oct  9 19:57:18 2012	(r241381)
+++ stable/8/sys/dev/tws/tws_cam.c	Tue Oct  9 19:59:22 2012	(r241382)
@@ -529,10 +529,10 @@ tws_scsi_err_complete(struct tws_request
 
         if ( ccb->ccb_h.target_lun ) {
             TWS_TRACE_DEBUG(sc, "invalid lun error",0,0);
-            ccb->ccb_h.status |= CAM_LUN_INVALID;
+            ccb->ccb_h.status |= CAM_DEV_NOT_THERE;
         } else {
             TWS_TRACE_DEBUG(sc, "invalid target error",0,0);
-            ccb->ccb_h.status |= CAM_TID_INVALID;
+            ccb->ccb_h.status |= CAM_SEL_TIMEOUT;
         }
 
     } else {



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