Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Jul 2012 02:56:01 +0000 (UTC)
From:      "Kenneth D. Merry" <ken@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r237947 - stable/9/sys/dev/mps
Message-ID:  <201207020256.q622u1Uf039083@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ken
Date: Mon Jul  2 02:56:01 2012
New Revision: 237947
URL: http://svn.freebsd.org/changeset/base/237947

Log:
  MFC 237800:
  
    r237800 | ken | 2012-06-29 11:00:52 -0600 (Fri, 29 Jun 2012) | 7 lines
  
    Change the mps(4) driver to only scan a target if that is what is
    needed instead of scanning the full bus every time.
  
  Submitted by:	mav
  Discussed with:	Sreekanth Reddy <Sreekanth.Reddy@lsi.com>

Modified:
  stable/9/sys/dev/mps/mps_sas.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/dev/   (props changed)

Modified: stable/9/sys/dev/mps/mps_sas.c
==============================================================================
--- stable/9/sys/dev/mps/mps_sas.c	Mon Jul  2 02:54:22 2012	(r237946)
+++ stable/9/sys/dev/mps/mps_sas.c	Mon Jul  2 02:56:01 2012	(r237947)
@@ -278,8 +278,11 @@ mpssas_rescan_target(struct mps_softc *s
 		return;
 	}
 
-	/* XXX Hardwired to scan the bus for now */
-	ccb->ccb_h.func_code = XPT_SCAN_BUS;
+	if (targetid == CAM_TARGET_WILDCARD)
+		ccb->ccb_h.func_code = XPT_SCAN_BUS;
+	else
+		ccb->ccb_h.func_code = XPT_SCAN_TGT;     
+
 	mps_dprint(sc, MPS_TRACE, "%s targetid %u\n", __func__, targetid);
 	mpssas_rescan(sassc, ccb);
 }



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