path: root/ipc
diff options
authorManfred Spraul <>2020-02-03 17:34:29 -0800
committerLinus Torvalds <>2020-02-04 03:05:23 +0000
commit39323c64b8a95d10ddc66dc815dd14efdddf6777 (patch)
tree2221c4326ef7fa9ff3f4e773f51c38246c6f64ca /ipc
parent92917998849eea951707c8fea2dc3007bb2ad2cd (diff)
smp_mb__{before,after}_atomic(): update Documentation
When adding the _{acquire|release|relaxed}() variants of some atomic operations, it was forgotten to update Documentation/memory_barrier.txt: smp_mb__{before,after}_atomic() is now intended for all RMW operations that do not imply a memory barrier. 1) smp_mb__before_atomic(); atomic_add(); 2) smp_mb__before_atomic(); atomic_xchg_relaxed(); 3) smp_mb__before_atomic(); atomic_fetch_add_relaxed(); Invalid would be: smp_mb__before_atomic(); atomic_set(); In addition, the patch splits the long sentence into multiple shorter sentences. Link: Fixes: 654672d4ba1a ("locking/atomics: Add _{acquire|release|relaxed}() variants of some atomic operations") Signed-off-by: Manfred Spraul <> Acked-by: Waiman Long <> Cc: Davidlohr Bueso <> Cc: Peter Zijlstra <> Cc: Will Deacon <> Cc: Peter Zijlstra <> Cc: <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions