handle_stop_signal: use the cached p->signal value
authorOleg Nesterov <oleg@tv-sign.ru>
Wed, 30 Apr 2008 07:52:46 +0000 (00:52 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Apr 2008 15:29:34 +0000 (08:29 -0700)
commitad16a4606939ce1bedb79c87e412467be803e990
treed9b1e96c2520c9c08660c4dfd5258b2acdc8d1ef
parentfc321d2e60d6f4eee17206612d0b50519f526daf
handle_stop_signal: use the cached p->signal value

Cache the value of p->signal, and change the code to use while_each_thread()
helper.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Roland McGrath <roland@redhat.com>
Cc: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/signal.c