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)
commit2f67a0695dc389247c05041b05d2a2b06fc102a3
treea43762f1c737724330b48a1815228d1756f3d054
parenta01e035ebb552223c03f2d9138ffc73f2d4d3965
flush kacpi_notify_wq before removing notify handler

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