do_wait: kill the old BUG_ON, use while_each_thread()
authorOleg Nesterov <oleg@redhat.com>
Wed, 17 Jun 2009 23:27:41 +0000 (16:27 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 18 Jun 2009 20:03:53 +0000 (13:03 -0700)
commita3f6dfb7295facb0505b5beca5a7ce48b0612379
tree882e1103eaf759ab0e3bc53c08ff69b1f096b1bf
parent64a16caf5e3417ee32f670debcb5857b02a9e08e
do_wait: kill the old BUG_ON, use while_each_thread()

do_wait() does BUG_ON(tsk->signal != current->signal), this looks like a
raher obsolete check.  At least, I don't think do_wait() is the best place
to verify that all threads have the same ->signal.  Remove it.

Also, change the code to use while_each_thread().

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Ingo Molnar <mingo@elte.hu>
Acked-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/exit.c