svn commit: r237947 - stable/9/sys/dev/mps
Kenneth D. Merry
ken at FreeBSD.org
Mon Jul 2 02:56:01 UTC 2012
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 at 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);
}
More information about the svn-src-stable-9
mailing list