diff options
author | Boqun Feng <boqun.feng@gmail.com> | 2015-12-29 07:18:47 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2016-02-24 06:59:54 +0300 |
commit | 67c583a7de3433a971983490b37ad2bff3c55463 (patch) | |
tree | b6d5123664992047b393594cff856de006fb86b4 /kernel/irq | |
parent | ad315455d396a1cbcb2f9fdd687b7e1b26b789e7 (diff) | |
download | linux-67c583a7de3433a971983490b37ad2bff3c55463.tar.xz |
RCU: Privatize rcu_node::lock
In patch:
"rcu: Add transitivity to remaining rcu_node ->lock acquisitions"
All locking operations on rcu_node::lock are replaced with the wrappers
because of the need of transitivity, which indicates we should never
write code using LOCK primitives alone(i.e. without a proper barrier
following) on rcu_node::lock outside those wrappers. We could detect
this kind of misuses on rcu_node::lock in the future by adding __private
modifier on rcu_node::lock.
To privatize rcu_node::lock, unlock wrappers are also needed. Replacing
spinlock unlocks with these wrappers not only privatizes rcu_node::lock
but also makes it easier to figure out critical sections of rcu_node.
This patch adds __private modifier to rcu_node::lock and makes every
access to it wrapped by ACCESS_PRIVATE(). Besides, unlock wrappers are
added and raw_spin_unlock(&rnp->lock) and its friends are replaced with
those wrappers.
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/irq')
0 files changed, 0 insertions, 0 deletions