]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
[SCSI] cleanup usages of scsi_complete_async_scans
authorDan Williams <dan.j.williams@intel.com>
Tue, 10 Jul 2012 02:33:40 +0000 (19:33 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Fri, 20 Jul 2012 08:25:22 +0000 (09:25 +0100)
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>
drivers/base/dd.c
drivers/scsi/scsi_scan.c
include/scsi/scsi_scan.h [deleted file]

index 4b01ab3d2c249328c810aaa03aec450d7f8d2822..dcb8a6e4869249e4b26b405a9348f02113809ba6 100644 (file)
@@ -24,7 +24,6 @@
 #include <linux/wait.h>
 #include <linux/async.h>
 #include <linux/pm_runtime.h>
-#include <scsi/scsi_scan.h>
 
 #include "base.h"
 #include "power/power.h"
@@ -333,7 +332,6 @@ void wait_for_device_probe(void)
        /* wait for the known devices to complete their probing */
        wait_event(probe_waitqueue, atomic_read(&probe_count) == 0);
        async_synchronize_full();
-       scsi_complete_async_scans();
 }
 EXPORT_SYMBOL_GPL(wait_for_device_probe);
 
index dff17c198a72195ed32b632bd5f6528235b5fc3b..a0bc6637265469eb2ffeea7fe9287d28d96f8562 100644 (file)
@@ -187,18 +187,6 @@ int scsi_complete_async_scans(void)
        return 0;
 }
 
-/* Only exported for the benefit of scsi_wait_scan */
-EXPORT_SYMBOL_GPL(scsi_complete_async_scans);
-
-#ifndef MODULE
-/*
- * For async scanning we need to wait for all the scans to complete before
- * trying to mount the root fs.  Otherwise non-modular drivers may not be ready
- * yet.
- */
-late_initcall(scsi_complete_async_scans);
-#endif
-
 /**
  * scsi_unlock_floptical - unlock device via a special MODE SENSE command
  * @sdev:      scsi device to send command to
diff --git a/include/scsi/scsi_scan.h b/include/scsi/scsi_scan.h
deleted file mode 100644 (file)
index 7889888..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-#ifndef _SCSI_SCSI_SCAN_H
-#define _SCSI_SCSI_SCAN_H
-
-#ifdef CONFIG_SCSI
-/* drivers/scsi/scsi_scan.c */
-extern int scsi_complete_async_scans(void);
-#else
-static inline int scsi_complete_async_scans(void) { return 0; }
-#endif
-
-#endif /* _SCSI_SCSI_SCAN_H */