svn commit: r237800 - head/sys/dev/mps
Kenneth D. Merry
ken at FreeBSD.org
Fri Jun 29 17:00:52 UTC 2012
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 at 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);
}
More information about the svn-src-head
mailing list