diff options
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 |