]> git.baikalelectronics.ru Git - kernel.git/commit
rcu: Tighten rcu_lockdep_assert_cblist_protected() check
authorPaul E. McKenney <paulmck@kernel.org>
Tue, 4 Feb 2020 16:56:41 +0000 (08:56 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 20 Feb 2020 23:58:23 +0000 (15:58 -0800)
commit88b57821798968e8911f2660c612d364923d1733
tree04db373437f324185df6a764d9a825282495e2ad
parent584789dbfab121a022e2263088913e5eff13d68f
rcu: Tighten rcu_lockdep_assert_cblist_protected() check

The ->nocb_lock lockdep assertion is currently guarded by cpu_online(),
which is incorrect for no-CBs CPUs, whose callback lists must be
protected by ->nocb_lock regardless of whether or not the corresponding
CPU is online.  This situation could result in failure to detect bugs
resulting from failing to hold ->nocb_lock for offline CPUs.

This commit therefore removes the cpu_online() guard.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree_plugin.h