]> git.baikalelectronics.ru Git - kernel.git/commit
Documentation: atomic_t.txt: Explain ordering provided by smp_mb__{before,after}_atomic()
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 3 May 2019 17:13:44 +0000 (13:13 -0400)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Wed, 19 Jun 2019 16:31:53 +0000 (09:31 -0700)
commitbc0ecee6ea7008a8fd6ba7d4b1030a5520f54e30
tree00e538245c0fb16d6bab0d69d7f2d0c418f6d47c
parent5659bb3f1f7684621ac79e93ea10694ae86ee3ba
Documentation: atomic_t.txt: Explain ordering provided by smp_mb__{before,after}_atomic()

The description of smp_mb__before_atomic() and smp_mb__after_atomic()
in Documentation/atomic_t.txt is slightly terse and misleading.  It
does not clearly state which other instructions are ordered by these
barriers.

This improves the text to make the actual ordering implications clear,
and also to explain how these barriers differ from a RELEASE or
ACQUIRE ordering.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Peter Zijlstra <peterz@infradead.org>
Acked-by: Andrea Parri <andrea.parri@amarulasolutions.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
Documentation/atomic_t.txt