summaryrefslogtreecommitdiffstats
path: root/crypto/compress.c
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@tv-sign.ru>2008-02-08 13:19:12 +0100
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-08 18:22:27 +0100
commitd12619b5ff5664623524aef796514d1946ea3b4a (patch)
tree23140ca0148f9154440d3056e2040d8df468a24b /crypto/compress.c
parentstart the global /sbin/init with 0,0 special pids (diff)
downloadlinux-d12619b5ff5664623524aef796514d1946ea3b4a.tar.xz
linux-d12619b5ff5664623524aef796514d1946ea3b4a.zip
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>
Diffstat (limited to 'crypto/compress.c')
0 files changed, 0 insertions, 0 deletions