From: Oleg Nesterov Date: Wed, 30 Apr 2008 07:52:36 +0000 (-0700) Subject: signals: do_signal_stop(): use signal_group_exit() X-Git-Tag: MMI-PSA29.97-13-9~34781 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=573cf9ad72c13750e86c91de43477e9dfb440523;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git signals: do_signal_stop(): use signal_group_exit() do_signal_stop() needs signal_group_exit() but checks sig->group_exit_task. This (optimization) is correct, SIGNAL_STOP_DEQUEUED and SIGNAL_GROUP_EXIT are mutually exclusive, but looks confusing. Use signal_group_exit(), this is not fastpath, the code clarity is more important. Signed-off-by: Oleg Nesterov Cc: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/signal.c b/kernel/signal.c index fb8ffd468854..29aca40be33f 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -1717,7 +1717,7 @@ static int do_signal_stop(int signr) struct task_struct *t; if (!likely(sig->flags & SIGNAL_STOP_DEQUEUED) || - unlikely(sig->group_exit_task)) + unlikely(signal_group_exit(sig))) return 0; /* * There is no group stop already in progress.