summaryrefslogtreecommitdiffstats
path: root/sys/dev/mps/mps_sas_lsi.c
diff options
context:
space:
mode:
authorken <ken@FreeBSD.org>2013-09-12 22:06:12 +0000
committerken <ken@FreeBSD.org>2013-09-12 22:06:12 +0000
commit856b6437a893d9a249f12a9dff0c2fce177012c7 (patch)
treee4661424b901edd2e66125f1c3c7e976a7c4c709 /sys/dev/mps/mps_sas_lsi.c
parenta4339b7e0aafb18a837c9296b3ee0f7fb0e0ee4f (diff)
downloadFreeBSD-src-856b6437a893d9a249f12a9dff0c2fce177012c7.zip
FreeBSD-src-856b6437a893d9a249f12a9dff0c2fce177012c7.tar.gz
Fix an issue that caused Integrated RAID volumes on LSI mps(4) controllers
to not get scanned on boot. The problem originated in change 253549. With the change to the mps(4) driver to scan only targets that it knows it has (as opposed to scanning the entire bus), scanning RAID volumes on boot was omitted. So, for versions of FreeBSD that have the scanning changes (__FreeBSD_version 1000039 and higher), scan RAID volumes that are added whether or not we're booting. PR: kern/181784 Reported by: Xiguang Wang <kurapica@gmail.com> Tested by: Dennis Glatting <dg@pki2.com> Sponsored by: Spectra Logic Approved by: re (delphij) MFC After: 3 days
Diffstat (limited to 'sys/dev/mps/mps_sas_lsi.c')
-rw-r--r--sys/dev/mps/mps_sas_lsi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/mps/mps_sas_lsi.c b/sys/dev/mps/mps_sas_lsi.c
index ca7ba4a..c219be14 100644
--- a/sys/dev/mps/mps_sas_lsi.c
+++ b/sys/dev/mps/mps_sas_lsi.c
@@ -898,7 +898,9 @@ mpssas_volume_add(struct mps_softc *sc, u16 handle)
free(lun, M_MPT2);
}
SLIST_INIT(&targ->luns);
+#if __FreeBSD_version < 1000039
if ((sassc->flags & MPSSAS_IN_STARTUP) == 0)
+#endif
mpssas_rescan_target(sc, targ);
mps_dprint(sc, MPS_MAPPING, "RAID target id %d added (WWID = 0x%jx)\n",
targ->tid, wwid);
OpenPOWER on IntegriCloud