semaphore: __down_common: use signal_pending_state()
authorOleg Nesterov <oleg@tv-sign.ru>
Tue, 5 Aug 2008 20:01:13 +0000 (13:01 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 5 Aug 2008 21:33:47 +0000 (14:33 -0700)
commit5b2becc8cffdccdd60c63099f592ddd35aa6c34f
treee502280aee4d93b059a93526ba3f02a6883a596d
parent32194450330be327f3b25bf6b66298bd122599e9
semaphore: __down_common: use signal_pending_state()

Change __down_common() to use signal_pending_state() instead of open
coding.

The changes in kernel/semaphore.o are just artifacts, the state checks are
optimized away.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Matthew Wilcox <matthew@wil.cx>
Cc: Roland McGrath <roland@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/semaphore.c