]> git.baikalelectronics.ru Git - kernel.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>
Sun, 23 Sep 2012 14:42:51 +0000 (07:42 -0700)
commit830671cb99ed8ed109efe08582077e2c94df295c
tree12ad0e02b6e30dffd8c7e2b24cdb278a6b799ad4
parent5416d3b3d072fd620de341a94f2c503b3bfe3c21
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