From: Oleg Nesterov Date: Wed, 17 Oct 2007 06:27:23 +0000 (-0700) Subject: exec: RT sub-thread can livelock and monopolize CPU on exec X-Git-Tag: v2.6.24-rc1~672 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6db840fa7887980ef68a649640d506fe069eef0c;p=pandora-kernel.git exec: RT sub-thread can livelock and monopolize CPU on exec de_thread() yields waiting for ->group_leader to be a zombie. This deadlocks if an rt-prio execer shares the same cpu with ->group_leader. Change the code to use ->group_exit_task/notify_count mechanics. This patch certainly uglifies the code, perhaps someone can suggest something better. Signed-off-by: Oleg Nesterov Cc: Roland McGrath Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed