]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/scsi/scsi_scan.c
[SCSI] fix CONFIG_SCSI_WAIT_SCAN=m
[mv-sheeva.git] / drivers / scsi / scsi_scan.c
index 0949145304eaaeba8f17554feaaf87e55453acb7..662577fbe7a87ddd93a66e37e66bbedbeb64e73d 100644 (file)
@@ -181,9 +181,16 @@ int scsi_complete_async_scans(void)
        return 0;
 }
 
-#ifdef MODULE
 /* Only exported for the benefit of scsi_wait_scan */
 EXPORT_SYMBOL_GPL(scsi_complete_async_scans);
+
+#ifndef MODULE
+/*
+ * For async scanning we need to wait for all the scans to complete before
+ * trying to mount the root fs.  Otherwise non-modular drivers may not be ready
+ * yet.
+ */
+late_initcall(scsi_complete_async_scans);
 #endif
 
 /**