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
This commit is contained in:
ken 2012-06-29 17:00:52 +00:00
parent 8d97a9ef0e
commit 0069682926

View File

@ -278,8 +278,11 @@ mpssas_rescan_target(struct mps_softc *sc, struct mpssas_target *targ)
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);
}