aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_scan.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2012-07-09 22:33:40 -0400
committerJames Bottomley <JBottomley@Parallels.com>2012-07-20 04:25:22 -0400
commit492d542273a4859f8bf8cc7744cdf71ef50b39ea (patch)
tree443e4a40bcb4217e74f20af38d42141568d51f98 /drivers/scsi/scsi_scan.c
parent6cdd55205d160f63003c321fcea608336953dd5b (diff)
[SCSI] cleanup usages of scsi_complete_async_scans
Now that scsi registers its async scan work with the async subsystem, wait_for_device_probe() is sufficient for ensuring all scanning is complete. [jejb: fix merge problems with eea03c20ae38 Make wait_for_device_probe() also do scsi_complete_async_scans()] Signed-off-by: Dan Williams <dan.j.williams@intel.com> Tested-by: Eldad Zack <eldad@fogrefinery.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/scsi_scan.c')
-rw-r--r--drivers/scsi/scsi_scan.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/scsi/scsi_scan.c b/drivers/scsi/scsi_scan.c
index dff17c198a72..a0bc66372654 100644
--- a/drivers/scsi/scsi_scan.c
+++ b/drivers/scsi/scsi_scan.c
@@ -187,18 +187,6 @@ int scsi_complete_async_scans(void)
187 return 0; 187 return 0;
188} 188}
189 189
190/* Only exported for the benefit of scsi_wait_scan */
191EXPORT_SYMBOL_GPL(scsi_complete_async_scans);
192
193#ifndef MODULE
194/*
195 * For async scanning we need to wait for all the scans to complete before
196 * trying to mount the root fs. Otherwise non-modular drivers may not be ready
197 * yet.
198 */
199late_initcall(scsi_complete_async_scans);
200#endif
201
202/** 190/**
203 * scsi_unlock_floptical - unlock device via a special MODE SENSE command 191 * scsi_unlock_floptical - unlock device via a special MODE SENSE command
204 * @sdev: scsi device to send command to 192 * @sdev: scsi device to send command to