signals: cleanup the usage of t/current in do_sigaction()
authorOleg Nesterov <[email protected]>
Fri, 6 Jun 2014 21:36:51 +0000 (14:36 -0700)
committerLinus Torvalds <[email protected]>
Fri, 6 Jun 2014 23:08:11 +0000 (16:08 -0700)
commitafe2b0386ac22b6a189a2067b25282cade3fbb4d
tree794acbfc5e7c0a333ce322301cfe71c96847ed91
parentc09c144139f227de13330111adcafa1659ebd008
signals: cleanup the usage of t/current in do_sigaction()

The usage of "task_struct *t" and "current" in do_sigaction() looks really
annoying and chaotic.  Initially "t" is used as a cached value of current
but not consistently, then it is reused as a loop variable and we have to
use "current" again.

Clean up this mess and also convert the code to use for_each_thread().

Signed-off-by: Oleg Nesterov <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Al Viro <[email protected]>
Cc: David Woodhouse <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Cc: Richard Weinberger <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Tejun Heo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
kernel/signal.c