diff options
author | Hugh Dickins <hugh@veritas.com> | 2007-05-23 17:41:42 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2007-05-30 10:16:38 -0400 |
commit | f2f027c6e9912840020be8b78f037d5c8ac665e0 (patch) | |
tree | 3d51226df6113aab7a62d1e64b3835d3fdb490a8 /drivers/scsi/scsi_scan.c | |
parent | 7f397dcdb78d699a20d96bfcfb595a2411a5bbd2 (diff) |
[SCSI] fix CONFIG_SCSI_WAIT_SCAN=m
CONFIG_MODULES=y
CONFIG_SCSI=y
CONFIG_SCSI_SCAN_ASYNC=y
CONFIG_SCSI_WAIT_SCAN=m
2.6.21-rc5-mm2 VFS panics unable to find my root on /dev/sda2, but boots
okay if I change drivers/scsi/Kconfig to "default y" instead of "default m"
for SCSI_WAIT_SCAN.
Make sure there's a late_initcall to scsi_complete_async_scans when it's
built in, so a monolithic SCSI_SCAN_ASYNC kernel can rely on the scans
being completed before trying to mount root, even if they're slow.
[akpm@linux-foundation.org: build fixes]
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Acked-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/scsi_scan.c')
-rw-r--r-- | drivers/scsi/scsi_scan.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c index a67f315244d7..662577fbe7a8 100644 --- a/drivers/scsi/scsi_scan.c +++ b/drivers/scsi/scsi_scan.c | |||
@@ -184,6 +184,15 @@ int scsi_complete_async_scans(void) | |||
184 | /* Only exported for the benefit of scsi_wait_scan */ | 184 | /* Only exported for the benefit of scsi_wait_scan */ |
185 | EXPORT_SYMBOL_GPL(scsi_complete_async_scans); | 185 | EXPORT_SYMBOL_GPL(scsi_complete_async_scans); |
186 | 186 | ||
187 | #ifndef MODULE | ||
188 | /* | ||
189 | * For async scanning we need to wait for all the scans to complete before | ||
190 | * trying to mount the root fs. Otherwise non-modular drivers may not be ready | ||
191 | * yet. | ||
192 | */ | ||
193 | late_initcall(scsi_complete_async_scans); | ||
194 | #endif | ||
195 | |||
187 | /** | 196 | /** |
188 | * scsi_unlock_floptical - unlock device via a special MODE SENSE command | 197 | * scsi_unlock_floptical - unlock device via a special MODE SENSE command |
189 | * @sdev: scsi device to send command to | 198 | * @sdev: scsi device to send command to |