]> git.baikalelectronics.ru Git - kernel.git/commit
handle_stop_signal: unify partial/full stop handling
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)
commit8100afd04efa21b75b1f7626fce964c32f88dbab
tree79dd03d347ccee2f5a538823f7434dfd40e302be
parent8a1382965eb02295a913983b3c6c389aedc27c38
handle_stop_signal: unify partial/full stop handling

Now that handle_stop_signal() doesn't drop ->siglock, we can't see both
->group_stop_count && SIGNAL_STOP_STOPPED.  Merge two "if" branches.

As Roland pointed out, we never actually needed 2 do_notify_parent_cldstop()
calls.

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