signal: complete_signal: use __for_each_thread()
PATCH 1/1 signal: complete_signal: use __for_each_thread()
do/while_each_thread should be avoided when possible.
Signed-off-by Oleg Nesterov <[email protected]>
--- kernel/signal.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
kernel/signal.c +2 -3
@@ -1058,12 +1058,11 @@ static void complete_signal(int sig, struct task_struct *p, enum pid_type type) signal->flags =SIGNAL_GROUP_EXIT ; signal->group_exit_code = sig; signal->group_stop_count =0 ; - t = p; - do { +__for_each_thread (signal, t) {task_clear_jobctl_pending (t,JOBCTL_PENDING_MASK );sigaddset (&t->pending.signal,SIGKILL );signal_wake_up (t,1 ); - } while_each_thread(p, t); + }return ; } }
Signature · 1 line
2.25.1.362.g51ebf55