]> git.baikalelectronics.ru Git - kernel.git/commit
rcu: Use the proper lockdep annotation in dump_blkd_tasks()
authorBoqun Feng <boqun.feng@gmail.com>
Fri, 9 Mar 2018 01:32:18 +0000 (09:32 +0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 26 Jun 2018 19:25:55 +0000 (12:25 -0700)
commit95dd31a10f2c8ea9f0219e57e582354c30a9fc04
tree15538a790633c47f67f31793f19e5c2f3ca1a806
parent2027e7fcf44d2d2adb897e47ed93bc5cc12cdafd
rcu: Use the proper lockdep annotation in dump_blkd_tasks()

Sparse reported this:

| kernel/rcu/tree_plugin.h:814:9: warning: incorrect type in argument 1 (different modifiers)
| kernel/rcu/tree_plugin.h:814:9:    expected struct lockdep_map const *lock
| kernel/rcu/tree_plugin.h:814:9:    got struct lockdep_map [noderef] *<noident>

This is caused by using vanilla lockdep annotations on rcu_node::lock,
and that requires accessing ->lock of rcu_node directly. However we need
to keep rcu_node::lock __private to avoid breaking its extra ordering
guarantee. And we have a dedicated lockdep annotation for
rcu_node::lock, so use it.

Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/tree_plugin.h