aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorStanislaw Gruszka <[email protected]>2010-03-11 14:04:42 -0800
committerThomas Gleixner <[email protected]>2010-03-12 22:40:41 +0100
commitc28739375bf0d6e239b4fa939ec8372aa2c707d2 (patch)
tree9d213503878c59b7adc9ca3e0517c566921f3c9a /net/lapb/lapb_in.c
parent1f169f84d25a74fb2dc67274d31d082ce30c60fb (diff)
cpu-timers: Avoid iterating over all threads in fastpath_timer_check()
Spread p->sighand->siglock locking scope to make sure that fastpath_timer_check() never iterates over all threads. Without locking there is small possibility that signal->cputimer will stop running while we write values to signal->cputime_expires. Calling thread_group_cputime() from fastpath_timer_check() is not only bad because it is slow, also it is racy with __exit_signal() which can lead to invalid signal->{s,u}time values. Signed-off-by: Stanislaw Gruszka <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Oleg Nesterov <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Hidetoshi Seto <[email protected]> Cc: Balbir Singh <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions