signal: use current->state helpers
authorDavidlohr Bueso <[email protected]>
Tue, 17 Feb 2015 21:45:41 +0000 (13:45 -0800)
committerLinus Torvalds <[email protected]>
Tue, 17 Feb 2015 22:34:51 +0000 (14:34 -0800)
commit1df0135588ed4e6048c1608ec046e9a38ea91e8e
treee04e2f8d3fcf080c2ec6d6a1430f2045f5df869d
parent1cca3385e6d556cd90cdc148c2f26af807fa3600
signal: use current->state helpers

Call __set_current_state() instead of assigning the new state directly.
These interfaces also aid CONFIG_DEBUG_ATOMIC_SLEEP environments, keeping
track of who changed the state.

Signed-off-by: Davidlohr Bueso <[email protected]>
Acked-by: Oleg Nesterov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
kernel/signal.c