]> err.no Git - linux-2.6/commitdiff
flush kacpi_notify_wq before removing notify handler
authorZhang Rui <rui.zhang@intel.com>
Tue, 29 Apr 2008 06:34:42 +0000 (02:34 -0400)
committerLen Brown <len.brown@intel.com>
Tue, 29 Apr 2008 06:34:42 +0000 (02:34 -0400)
Flush kacpi_notify_wq before notify handler is removed,
this can fix a bug which the deferred notify handler is executed
after the notify_handler has already been removed.
http://bugzilla.kernel.org/show_bug.cgi?id=9772

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/osl.c

index a498a6cc68fec1d463786fba1d3b6c84a6e6b68f..235a1386888a42fb19c59f6080155a6e774071b3 100644 (file)
@@ -742,6 +742,7 @@ EXPORT_SYMBOL(acpi_os_execute);
 void acpi_os_wait_events_complete(void *context)
 {
        flush_workqueue(kacpid_wq);
+       flush_workqueue(kacpi_notify_wq);
 }
 
 EXPORT_SYMBOL(acpi_os_wait_events_complete);