]> git.karo-electronics.de Git - karo-tx-linux.git/commit
thinkpad-acpi: kill hotkey_thread_mutex
authorOleg Nesterov <oleg@redhat.com>
Wed, 20 Mar 2013 04:06:49 +0000 (15:06 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 21 Mar 2013 05:27:11 +0000 (16:27 +1100)
commit883e7f2c3df6dc9c70a2b07154cb18664f79cb89
tree2ebba4427f81665eaf9e46f1104e517324c3a2d0
parent452b3e762e83f5264f40b3c172e4c1cdb3f7c0b9
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 <artem.savkov@gmail.com>
Reported-by: Maciej Rutecki <maciej.rutecki@gmail.com>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Matthew Garrett <matthew.garrett@nebula.com>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Reviewed-by: Mandeep Singh Baines <msb@chromium.org>
Cc: Aaron Lu <aaron.lu@intel.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/platform/x86/thinkpad_acpi.c