rcu: move check from rcu_dereference_bh to rcu_read_lock_bh_held
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 5 Oct 2010 21:03:02 +0000 (14:03 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 5 Oct 2010 21:03:02 +0000 (14:03 -0700)
commit773e3f93577ffb493fb7c39b1a6ecf39b5748e87
tree78340c40e26e3dbcbde66b013710b6c916ecc05b
parentb3a084b9b684622b149e8dcf03855bf0d5fb588b
rcu: move check from rcu_dereference_bh to rcu_read_lock_bh_held

As suggested by Linus, push the irqs_disabled() down to the
rcu_read_lock_bh_held() level so that all callers get the benefit
of the correct check.

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