exec: RT sub-thread can livelock and monopolize CPU on exec
commit6db840fa7887980ef68a649640d506fe069eef0c
authorOleg Nesterov <oleg@tv-sign.ru>
Wed, 17 Oct 2007 06:27:23 +0000 (16 23:27 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:42:54 +0000 (17 08:42 -0700)
tree6248c1e65b572f1c2b14c46848e5a18df003f60e
parent356d6d5058c8082b9e811838ab2fa27825c947e4
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 <oleg@tv-sign.ru>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/exec.c
kernel/exit.c