Commit 2f67a0695dc389247c05041b05d2a2b06fc102a3

Authored by Zhang Rui
Committed by Len Brown
1 parent a01e035ebb

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>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

... ... @@ -742,6 +742,7 @@
742 742 void acpi_os_wait_events_complete(void *context)
743 743 {
744 744 flush_workqueue(kacpid_wq);
  745 + flush_workqueue(kacpi_notify_wq);
745 746 }
746 747  
747 748 EXPORT_SYMBOL(acpi_os_wait_events_complete);