From: Andrew Morton Cc: Hugh Dickins Cc: James Bottomley Signed-off-by: Andrew Morton --- drivers/scsi/scsi_scan.c | 6 ++++++ 1 files changed, 6 insertions(+) diff -puN drivers/scsi/scsi_scan.c~scsi-fix-config_scsi_wait_scan=m-fix drivers/scsi/scsi_scan.c --- a/drivers/scsi/scsi_scan.c~scsi-fix-config_scsi_wait_scan=m-fix +++ a/drivers/scsi/scsi_scan.c @@ -183,6 +183,12 @@ int scsi_complete_async_scans(void) /* Only exported for the benefit of scsi_wait_scan */ EXPORT_SYMBOL_GPL(scsi_complete_async_scans); + +/* + * 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); /** _