Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

signal: complete_signal: use __for_each_thread()

do/while_each_thread should be avoided when possible.

Link: https://lkml.kernel.org/r/20230909164537.GA11633@redhat.com
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Oleg Nesterov and committed by
Andrew Morton
e5ecf29c 7904e53e

+2 -3
+2 -3
kernel/signal.c
··· 1058 1058 signal->flags = SIGNAL_GROUP_EXIT; 1059 1059 signal->group_exit_code = sig; 1060 1060 signal->group_stop_count = 0; 1061 - t = p; 1062 - do { 1061 + __for_each_thread(signal, t) { 1063 1062 task_clear_jobctl_pending(t, JOBCTL_PENDING_MASK); 1064 1063 sigaddset(&t->pending.signal, SIGKILL); 1065 1064 signal_wake_up(t, 1); 1066 - } while_each_thread(p, t); 1065 + } 1067 1066 return; 1068 1067 } 1069 1068 }