exit: wait_task_zombie: kill the no longer necessary spin_lock_irq(siglock)
authorOleg Nesterov <oleg@redhat.com>
Tue, 23 Jan 2024 15:34:00 +0000 (16:34 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 8 Feb 2024 05:20:33 +0000 (21:20 -0800)
commitc1be35a16b2f1fe21f4f26f9de030ad6eaaf6a25
treed7ca24b5723bb9e8aaec90de0e06f9d22c026972
parent7601df8031fd67310af891897ef6cc0df4209305
exit: wait_task_zombie: kill the no longer necessary spin_lock_irq(siglock)

After the recent changes nobody use siglock to read the values protected
by stats_lock, we can kill spin_lock_irq(&current->sighand->siglock) and
update the comment.

With this patch only __exit_signal() and thread_group_start_cputime() take
stats_lock under siglock.

Link: https://lkml.kernel.org/r/20240123153359.GA21866@redhat.com
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Dylan Hatch <dylanbhatch@google.com>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/exit.c