Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
thinkpad-acpi: kill hotkey_thread_mutex
hotkey_kthread() does try_to_freeze() under hotkey_thread_mutex. We can simply kill this mutex, hotkey_poll_stop_sync() does not need to serialize with hotkey_kthread(). When kthread_stop() returns the thread is already dead, it called do_exit()->complete_vfork_done(). Reported-by: Artem Savkov <[email protected]> Reported-by: Maciej Rutecki <[email protected]> Signed-off-by: Oleg Nesterov <[email protected]> Acked-by: Henrique de Moraes Holschuh <[email protected]> Cc: Matthew Garrett <[email protected]> Cc: "Rafael J. Wysocki" <[email protected]> Reviewed-by: Mandeep Singh Baines <[email protected]> Cc: Aaron Lu <[email protected]> Cc: Tejun Heo <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information