]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
alarmtimer: Lock k_itimer during timer callback
authorRichard Larocque <rlarocque@google.com>
Wed, 10 Sep 2014 01:31:05 +0000 (18:31 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Fri, 12 Sep 2014 20:59:12 +0000 (13:59 -0700)
commit474e941bed9262f5fa2394f9a4a67e24499e5926
tree1295960e17591bead96c9ae706d15c51bd68e468
parent265b81d23a46c39df0a735a3af4238954b41a4c2
alarmtimer: Lock k_itimer during timer callback

Locks the k_itimer's it_lock member when handling the alarm timer's
expiry callback.

The regular posix timers defined in posix-timers.c have this lock held
during timout processing because their callbacks are routed through
posix_timer_fn().  The alarm timers follow a different path, so they
ought to grab the lock somewhere else.

Cc: stable@vger.kernel.org
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Richard Cochran <richardcochran@gmail.com>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Sharvil Nanavati <sharvil@google.com>
Signed-off-by: Richard Larocque <rlarocque@google.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
kernel/time/alarmtimer.c