diff options
| author | David S. Miller <davem@davemloft.net> | 2009-05-18 21:08:20 -0700 | 
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2009-05-18 21:08:20 -0700 | 
| commit | bb803cfbecb03a0cf8dc7e1864f18dda6631af00 (patch) | |
| tree | 6c0989693bea6f50cfa5c6bb14f52ec19668def3 /drivers/scsi/scsi_wait_scan.c | |
| parent | 3878fb6fdbceecca20b15748f807340854220f06 (diff) | |
| parent | 511e11e396dc596825ce04d53d7f6d579404bc01 (diff) | |
| download | olio-linux-3.10-bb803cfbecb03a0cf8dc7e1864f18dda6631af00.tar.xz olio-linux-3.10-bb803cfbecb03a0cf8dc7e1864f18dda6631af00.zip  | |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts:
	drivers/scsi/fcoe/fcoe.c
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 2f21af21269..74708fcaf82 100644 --- a/drivers/scsi/scsi_wait_scan.c +++ b/drivers/scsi/scsi_wait_scan.c @@ -11,10 +11,21 @@   */  #include <linux/module.h> +#include <linux/device.h>  #include <scsi/scsi_scan.h>  static int __init wait_scan_init(void)  { +	/* +	 * First we need to wait for device probing to finish; +	 * the drivers we just loaded might just still be probing +	 * and might not yet have reached the scsi async scanning +	 */ +	wait_for_device_probe(); +	/* +	 * and then we wait for the actual asynchronous scsi scan +	 * to finish. +	 */  	scsi_complete_async_scans();  	return 0;  }  |