change complete_signal() to use for_each_thread().

Signed-off-by: Oleg Nesterov <[email protected]>
---
 kernel/signal.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/kernel/signal.c b/kernel/signal.c
index 7e9f6fa..8cdde5f 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -930,12 +930,11 @@ static void complete_signal(int sig, struct task_struct 
*p, int group)
                        signal->flags = SIGNAL_GROUP_EXIT;
                        signal->group_exit_code = sig;
                        signal->group_stop_count = 0;
-                       t = p;
-                       do {
+                       for_each_thread(p, 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;
                }
        }
-- 
1.5.5.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to