]> git.karo-electronics.de Git - karo-tx-linux.git/commit
thinkpad-acpi: kill hotkey_thread_mutex
authorOleg Nesterov <oleg@redhat.com>
Tue, 26 Mar 2013 23:24:02 +0000 (10:24 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 4 Apr 2013 05:53:01 +0000 (16:53 +1100)
commit2c87ee014b5cc33dc234ee1746e5e76ccfcffe8e
treed5f6456e16bce4f0846fa633be74592c35361612
parent598b63ccb90b29a49078564d4753bc613d37711d
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