Skip to content

Commit 492d542

Browse files
djbwJames Bottomley
authored andcommitted
[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 eea03c2 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>
1 parent 6cdd552 commit 492d542

File tree

3 files changed

+0
-25
lines changed

3 files changed

+0
-25
lines changed

drivers/base/dd.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#include <linux/wait.h>
2525
#include <linux/async.h>
2626
#include <linux/pm_runtime.h>
27-
#include <scsi/scsi_scan.h>
2827

2928
#include "base.h"
3029
#include "power/power.h"
@@ -333,7 +332,6 @@ void wait_for_device_probe(void)
333332
/* wait for the known devices to complete their probing */
334333
wait_event(probe_waitqueue, atomic_read(&probe_count) == 0);
335334
async_synchronize_full();
336-
scsi_complete_async_scans();
337335
}
338336
EXPORT_SYMBOL_GPL(wait_for_device_probe);
339337

drivers/scsi/scsi_scan.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -187,18 +187,6 @@ int scsi_complete_async_scans(void)
187187
return 0;
188188
}
189189

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-
202190
/**
203191
* scsi_unlock_floptical - unlock device via a special MODE SENSE command
204192
* @sdev: scsi device to send command to

include/scsi/scsi_scan.h

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)