diff options
Diffstat (limited to 'drivers/scsi/scsi_wait_scan.c')
| -rw-r--r-- | drivers/scsi/scsi_wait_scan.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_wait_scan.c b/drivers/scsi/scsi_wait_scan.c index 2f21af21269a..74708fcaf82f 100644 --- a/drivers/scsi/scsi_wait_scan.c +++ b/drivers/scsi/scsi_wait_scan.c | |||
| @@ -11,10 +11,21 @@ | |||
| 11 | */ | 11 | */ |
| 12 | 12 | ||
| 13 | #include <linux/module.h> | 13 | #include <linux/module.h> |
| 14 | #include <linux/device.h> | ||
| 14 | #include <scsi/scsi_scan.h> | 15 | #include <scsi/scsi_scan.h> |
| 15 | 16 | ||
| 16 | static int __init wait_scan_init(void) | 17 | static int __init wait_scan_init(void) |
| 17 | { | 18 | { |
| 19 | /* | ||
| 20 | * First we need to wait for device probing to finish; | ||
| 21 | * the drivers we just loaded might just still be probing | ||
| 22 | * and might not yet have reached the scsi async scanning | ||
| 23 | */ | ||
| 24 | wait_for_device_probe(); | ||
| 25 | /* | ||
| 26 | * and then we wait for the actual asynchronous scsi scan | ||
| 27 | * to finish. | ||
| 28 | */ | ||
| 18 | scsi_complete_async_scans(); | 29 | scsi_complete_async_scans(); |
| 19 | return 0; | 30 | return 0; |
| 20 | } | 31 | } |
