Skip to content
Commit 5f160126 authored by Stuart Hayes's avatar Stuart Hayes Committed by Len Brown
Browse files

acpi_pad: fix power_saving thread deadlock

The acpi_pad driver can get stuck in destroy_power_saving_task()
waiting for kthread_stop() to stop a power_saving thread.  The problem
is that the isolated_cpus_lock mutex is owned when
destroy_power_saving_task() calls kthread_stop(), which waits for a
power_saving thread to end, and the power_saving thread tries to
acquire the isolated_cpus_lock when it calls round_robin_cpu().  This
patch fixes the issue by making round_robin_cpu() use its own mutex.

https://bugzilla.kernel.org/show_bug.cgi?id=42981



Cc: stable@vger.kernel.org
Signed-off-by: default avatarStuart Hayes <Stuart_Hayes@Dell.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 76e10d15
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment