Skip to contentSkip to conversation

ACPI: flush kacpi_notify_wq before removing notify handler

PATCH In review Zhang Rui 1 participant 1 message Jan 17, 2008 ACPI

lore
Share & tools
lore

Zhang Rui

author
#0 lore raw

PATCH 1/4 ACPI: flush kacpi_notify_wq before removing notify handler

From: Zhang Rui <[email protected]>

Flush kacpi_notify_wq before notify handler is removed.

---
 drivers/acpi/osl.c |    1 +
 1 file changed, 1 insertion(+)
drivers/acpi/osl.c +1 -0
Index: linux-2.6/drivers/acpi/osl.c
===================================================================
@@ -707,6 +707,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);