aboutsummaryrefslogtreecommitdiff
path: root/rust/macros
diff options
context:
space:
mode:
authorFrederic Weisbecker <[email protected]>2024-05-30 15:45:45 +0200
committerNeeraj Upadhyay <[email protected]>2024-07-29 07:34:31 +0530
commit7121dd915a262aee1f5a88cf86b1543f3a9439d7 (patch)
tree03711242df5dd69dd2300fa108c60a622177bac1 /rust/macros
parent7be88a857eb84d2e0677690b81ee423dee51c93d (diff)
rcu/nocb: Introduce nocb mutex
The barrier_mutex is used currently to protect (de-)offloading operations and prevent from nocb_lock locking imbalance in rcu_barrier() and shrinker, and also from misordered RCU barrier invocation. Now since RCU (de-)offloading is going to happen on offline CPUs, an RCU barrier will have to be executed while transitionning from offloaded to de-offloaded state. And this can't happen while holding the barrier_mutex. Introduce a NOCB mutex to protect (de-)offloading transitions. The barrier_mutex is still held for now when necessary to avoid barrier callbacks reordering and nocb_lock imbalance. Signed-off-by: Frederic Weisbecker <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]> Reviewed-by: Paul E. McKenney <[email protected]> Signed-off-by: Neeraj Upadhyay <[email protected]>
Diffstat (limited to 'rust/macros')
0 files changed, 0 insertions, 0 deletions