Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=f2f027c6e9912840020be8b78f037d5c8ac665e0
Commit:     f2f027c6e9912840020be8b78f037d5c8ac665e0
Parent:     7f397dcdb78d699a20d96bfcfb595a2411a5bbd2
Author:     Hugh Dickins <[EMAIL PROTECTED]>
AuthorDate: Wed May 23 14:41:42 2007 -0700
Committer:  James Bottomley <[EMAIL PROTECTED]>
CommitDate: Wed May 30 09:16:38 2007 -0500

    [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.
    
    [EMAIL PROTECTED]: build fixes]
    Signed-off-by: Hugh Dickins <[EMAIL PROTECTED]>
    Acked-by: Matthew Wilcox <[EMAIL PROTECTED]>
    Signed-off-by: James Bottomley <[EMAIL PROTECTED]>
---
 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 a67f315..662577f 100644
--- a/drivers/scsi/scsi_scan.c
+++ b/drivers/scsi/scsi_scan.c
@@ -184,6 +184,15 @@ int scsi_complete_async_scans(void)
 /* 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
+
 /**
  * scsi_unlock_floptical - unlock device via a special MODE SENSE command
  * @sdev:      scsi device to send command to
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to