From: Tejun Heo Date: Wed, 23 Mar 2011 09:37:00 +0000 (+0100) Subject: ptrace: Participate in group stop from ptrace_stop() iff the task is trapping for... X-Git-Tag: v3.0-rc1~382^2~17^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ae8ce1c8c5b9007ce6bfc83ec2aa0dfce5bbed3;p=pandora-kernel.git ptrace: Participate in group stop from ptrace_stop() iff the task is trapping for group stop Currently, ptrace_stop() unconditionally participates in group stop bookkeeping. This is unnecessary and inaccurate. Make it only participate if the task is trapping for group stop - ie. if @why is CLD_STOPPED. As ptrace_stop() currently is not used when trapping for group stop, this equals to disabling group stop participation from ptrace_stop(). A visible behavior change is increased likelihood of delayed group stop completion if the thread group contains one or more ptraced tasks. This is to preapre for further cleanup of the interaction between group stop and ptrace. Signed-off-by: Tejun Heo Acked-by: Oleg Nesterov Cc: Roland McGrath --- Reading git-diff-tree failed