]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rcu: Protect rcu_node accesses during CPU stall warnings
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 10 Aug 2012 23:55:59 +0000 (16:55 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 4 Sep 2012 23:38:48 +0000 (16:38 -0700)
commita0f4d375cf167378592b8e70927209fc08b17e6b
tree393d801120940db790d8ce898d8fa3d13aac1d8d
parent05b69cb14e15e843641ae16156b3fac8beb37668
rcu: Protect rcu_node accesses during CPU stall warnings

The print_other_cpu_stall() function accesses a number of rcu_node
fields without protection from the ->lock.  In theory, this is not
a problem because the fields accessed are all integers, but in
practice the compiler can get nasty.  Therefore, the commit extends
the existing critical section to cover the entire loop body.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcutree.c