tools/memory-model: Add smp_mb__after_srcu_read_unlock()
This commit adds support for smp_mb__after_srcu_read_unlock(), which, when combined with a prior srcu_read_unlock(), implies a full memory barrier. No ordering is guaranteed to accesses between the two, and placing accesses between is bad practice in any case. Tests may be found at https://github.com/paulmckrcu/litmus in files matching manual/kernel/C-srcu-mb-*.litmus. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
This commit is contained in:
@@ -31,7 +31,8 @@ enum Barriers = 'wmb (*smp_wmb*) ||
|
||||
'before-atomic (*smp_mb__before_atomic*) ||
|
||||
'after-atomic (*smp_mb__after_atomic*) ||
|
||||
'after-spinlock (*smp_mb__after_spinlock*) ||
|
||||
'after-unlock-lock (*smp_mb__after_unlock_lock*)
|
||||
'after-unlock-lock (*smp_mb__after_unlock_lock*) ||
|
||||
'after-srcu-read-unlock (*smp_mb__after_srcu_read_unlock*)
|
||||
instructions F[Barriers]
|
||||
|
||||
(* SRCU *)
|
||||
|
||||
Reference in New Issue
Block a user