]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rcu: Move unanticipated condition from "if" to "WARN_ON()"
authorPaul E. McKenney <paul.mckenney@linaro.org>
Fri, 27 Jul 2012 19:40:30 +0000 (12:40 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 31 Jul 2012 18:34:18 +0000 (11:34 -0700)
commit1083e3acfe0a29e371f4c3bac7a8fbcccf09f43f
treeb5b1ab41569ec5b6398d79cf5ae4dc6635d15d75
parentb4862b8207ab50342407bab3dea8dc126034c6c3
rcu: Move unanticipated condition from "if" to "WARN_ON()"

The rcu_preempt_offline_tasks() checks for any of the rcu_node structure's
CPUs still being in an RCU critical section. However, it is extremely
unlikely that any will be due to the fact that all the CPUs must be
offline when this function is called.  This commit therefore moves the
check from the "if" statement to a "WARN_ON()".

Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcutree_plugin.h