diff options
| author | Paul E. McKenney <[email protected]> | 2013-12-11 13:59:10 -0800 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2013-12-16 11:36:16 +0100 |
| commit | 6303b9c87d52eaedc82968d3ff59c471e7682afc (patch) | |
| tree | ffadb26316714834e26898f5fae6a9fa0f463934 /lib/mpi/mpi-pow.c | |
| parent | 17eb88e068430014deb709e5af34197cdf2390c9 (diff) | |
rcu: Apply smp_mb__after_unlock_lock() to preserve grace periods
RCU must ensure that there is the equivalent of a full memory
barrier between any memory access preceding grace period and any
memory access following that same grace period, regardless of
which CPU(s) happen to execute the two memory accesses.
Therefore, downgrading UNLOCK+LOCK to no longer imply a full
memory barrier requires some adjustments to RCU.
This commit therefore adds smp_mb__after_unlock_lock()
invocations as needed after the RCU lock acquisitions that need
to be part of a full-memory-barrier UNLOCK+LOCK.
Signed-off-by: Paul E. McKenney <[email protected]>
Reviewed-by: Peter Zijlstra <[email protected]>
Cc: <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Andrew Morton <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-pow.c')
0 files changed, 0 insertions, 0 deletions