Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jun 2012 17:00:52 +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: r237800 - head/sys/dev/mps
Message-ID:  <201206291700.q5TH0q0U057890@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ken
Date: Fri Jun 29 17:00:52 2012
New Revision: 237800
URL: http://svn.freebsd.org/changeset/base/237800

Log:
  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>
  MFC after:	3 days

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

Modified: head/sys/dev/mps/mps_sas.c
==============================================================================
--- head/sys/dev/mps/mps_sas.c	Fri Jun 29 16:50:52 2012	(r237799)
+++ head/sys/dev/mps/mps_sas.c	Fri Jun 29 17:00:52 2012	(r237800)
@@ -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?201206291700.q5TH0q0U057890>