]> asedeno.scripts.mit.edu Git - linux.git/commit
posix-timers: Remove "it_signal = NULL" assignment in itimer_delete()
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Fri, 21 Jun 2019 14:36:42 +0000 (16:36 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 22 Jun 2019 10:14:22 +0000 (12:14 +0200)
commit12063d431078be73d11cb5e48a17c6db5f0d8254
tree3e687b60a21f6b613752ea0abf908a0a3a1fa13d
parent4c54294d01e605a9f992361b924c5d8b12822a6d
posix-timers: Remove "it_signal = NULL" assignment in itimer_delete()

itimer_delete() is invoked during do_exit(). At this point it is the
last thread in the group dying and doing the clean up.
Since it is the last thread in the group, there can not be any other
task attempting to lock the itimer which means the NULL assignment (which
avoids lookups in __lock_timer()) is not required.

The assignment and comment was copied in commit 0e568881178ff ("[PATCH]
fix posix-timers to have proper per-process scope") from
sys_timer_delete() which was/is the syscall interface and requires the
assignment.

Remove the superfluous ->it_signal = NULL assignment.

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-2-bigeasy@linutronix.de
kernel/time/posix-timers.c