1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

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:
Kenneth D. Merry 2012-06-29 17:00:52 +00:00
parent 9600bf00bb
commit 82e4855cad
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=237800

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);
}