diff options
Diffstat (limited to 'drivers/scsi/scsi.c')
-rw-r--r-- | drivers/scsi/scsi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c index bbbc9c918d4c..2936b447cae9 100644 --- a/drivers/scsi/scsi.c +++ b/drivers/scsi/scsi.c | |||
@@ -54,6 +54,7 @@ | |||
54 | #include <linux/notifier.h> | 54 | #include <linux/notifier.h> |
55 | #include <linux/cpu.h> | 55 | #include <linux/cpu.h> |
56 | #include <linux/mutex.h> | 56 | #include <linux/mutex.h> |
57 | #include <linux/async.h> | ||
57 | 58 | ||
58 | #include <scsi/scsi.h> | 59 | #include <scsi/scsi.h> |
59 | #include <scsi/scsi_cmnd.h> | 60 | #include <scsi/scsi_cmnd.h> |
@@ -91,7 +92,7 @@ EXPORT_SYMBOL(scsi_logging_level); | |||
91 | #endif | 92 | #endif |
92 | 93 | ||
93 | /* sd, scsi core and power management need to coordinate flushing async actions */ | 94 | /* sd, scsi core and power management need to coordinate flushing async actions */ |
94 | LIST_HEAD(scsi_sd_probe_domain); | 95 | ASYNC_DOMAIN(scsi_sd_probe_domain); |
95 | EXPORT_SYMBOL(scsi_sd_probe_domain); | 96 | EXPORT_SYMBOL(scsi_sd_probe_domain); |
96 | 97 | ||
97 | /* NB: These are exposed through /proc/scsi/scsi and form part of the ABI. | 98 | /* NB: These are exposed through /proc/scsi/scsi and form part of the ABI. |
@@ -1354,6 +1355,7 @@ static void __exit exit_scsi(void) | |||
1354 | scsi_exit_devinfo(); | 1355 | scsi_exit_devinfo(); |
1355 | scsi_exit_procfs(); | 1356 | scsi_exit_procfs(); |
1356 | scsi_exit_queue(); | 1357 | scsi_exit_queue(); |
1358 | async_unregister_domain(&scsi_sd_probe_domain); | ||
1357 | } | 1359 | } |
1358 | 1360 | ||
1359 | subsys_initcall(init_scsi); | 1361 | subsys_initcall(init_scsi); |