Commit 492d542273a4859f8bf8cc7744cdf71ef50b39ea
Committed by
James Bottomley
1 parent
6cdd55205d
[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>
Showing 3 changed files with 0 additions and 25 deletions Side-by-side Diff
drivers/base/dd.c
... | ... | @@ -24,7 +24,6 @@ |
24 | 24 | #include <linux/wait.h> |
25 | 25 | #include <linux/async.h> |
26 | 26 | #include <linux/pm_runtime.h> |
27 | -#include <scsi/scsi_scan.h> | |
28 | 27 | |
29 | 28 | #include "base.h" |
30 | 29 | #include "power/power.h" |
... | ... | @@ -333,7 +332,6 @@ |
333 | 332 | /* wait for the known devices to complete their probing */ |
334 | 333 | wait_event(probe_waitqueue, atomic_read(&probe_count) == 0); |
335 | 334 | async_synchronize_full(); |
336 | - scsi_complete_async_scans(); | |
337 | 335 | } |
338 | 336 | EXPORT_SYMBOL_GPL(wait_for_device_probe); |
339 | 337 |
drivers/scsi/scsi_scan.c
... | ... | @@ -187,18 +187,6 @@ |
187 | 187 | return 0; |
188 | 188 | } |
189 | 189 | |
190 | -/* Only exported for the benefit of scsi_wait_scan */ | |
191 | -EXPORT_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 | - */ | |
199 | -late_initcall(scsi_complete_async_scans); | |
200 | -#endif | |
201 | - | |
202 | 190 | /** |
203 | 191 | * scsi_unlock_floptical - unlock device via a special MODE SENSE command |
204 | 192 | * @sdev: scsi device to send command to |
include/scsi/scsi_scan.h