posix-timers: Use spin_lock_irq() in itimer_delete()
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Fri, 21 Jun 2019 14:36:43 +0000 (16:36 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 22 Jun 2019 10:14:22 +0000 (12:14 +0200)
commit7586addb99322faf4d096fc8beb140f879409212
treefad9f446eebe6924933f0f05e15cacd6eac7ee69
parent12063d431078be73d11cb5e48a17c6db5f0d8254
posix-timers: Use spin_lock_irq() in itimer_delete()

itimer_delete() uses spin_lock_irqsave() to obtain a `flags' variable
which can then be passed to unlock_timer(). It uses already spin_lock
locking for the structure instead of lock_timer() because it has a timer
which can not be removed by others at this point. The cleanup is always
performed with enabled interrupts.

Use spin_lock_irq() / spin_unlock_irq() so the `flags' variable can be
removed.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20190621143643.25649-3-bigeasy@linutronix.de
kernel/time/posix-timers.c