From: Oleg Nesterov Date: Fri, 1 Apr 2011 18:12:16 +0000 (+0200) Subject: signal: do_signal_stop: Remove the unneeded task_clear_group_stop_pending() X-Git-Tag: v3.0-rc1~382^2~17^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=780006eac2fe7f4d2582da16a096e5a44c4767ff;p=pandora-kernel.git signal: do_signal_stop: Remove the unneeded task_clear_group_stop_pending() PF_EXITING or TASK_STOPPED has already called task_participate_group_stop() and cleared its ->group_stop. No need to do task_clear_group_stop_pending() when we start the new group stop. Add a small comment to explain the !task_is_stopped() check. Note that this check is not exactly right and it can lead to unnecessary stop later if the thread is TASK_PTRACED. What we need is task_participated_in_group_stop(), this will be solved later. Signed-off-by: Oleg Nesterov Signed-off-by: Tejun Heo --- Reading git-diff-tree failed