Files
linux/include
Oleg Nesterov d12619b5ff fix group stop with exit race
do_signal_stop() counts all sub-thread and sets ->group_stop_count
accordingly.  Every thread should decrement ->group_stop_count and stop,
the last one should notify the parent.

However a sub-thread can exit before it notices the signal_pending(), or it
may be somewhere in do_exit() already.  In that case the group stop never
finishes properly.

Note: this is a minimal fix, we can add some optimizations later.  Say we
can return quickly if thread_group_empty().  Also, we can move some signal
related code from exit_notify() to exit_signals().

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Acked-by: Davide Libenzi <davidel@xmailserver.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-08 09:22:27 -08:00
..
2008-02-07 08:42:31 -08:00
2008-02-07 08:42:31 -08:00
2008-02-07 08:42:32 -08:00
2008-02-07 08:42:32 -08:00
2008-02-07 08:42:32 -08:00
2008-02-07 08:42:32 -08:00
2008-02-08 09:22:24 -08:00
2008-02-05 09:44:31 -08:00
2008-02-07 08:42:33 -08:00
2008-02-07 08:42:33 -08:00
2008-02-08 09:22:27 -08:00
2008-02-03 17:19:47 +02:00
2008-02-06 19:25:06 -06:00
2008-01-31 17:40:18 +01:00
2008-02-06 10:41:16 -08:00