mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[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]>
This commit is contained in:
parent
7f397dcdb7
commit
f2f027c6e9
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue