linux/Documentation
Manfred Spraul 39323c64b8 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: http://lkml.kernel.org/r/20191020123305.14715-2-manfred@colorfullife.com
Fixes: 654672d4ba1a ("locking/atomics: Add _{acquire|release|relaxed}() variants of some atomic operations")
Signed-off-by: Manfred Spraul <manfred@colorfullife.com>
Acked-by: Waiman Long <longman@redhat.com>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: <1vier1@web.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-02-04 03:05:23 +00:00
..
2020-01-30 15:39:24 -08:00
2019-10-30 16:25:31 +01:00
2020-02-03 14:51:57 +00:00
2020-01-30 15:39:24 -08:00
2020-01-03 11:43:44 +10:00
2019-12-11 09:12:38 +01:00
2020-02-01 10:25:55 -08:00
2020-01-31 14:43:23 -08:00
2019-10-10 11:25:39 -06:00
2019-12-03 13:58:22 -08:00
2019-07-17 06:57:52 -03:00
2020-01-28 16:26:57 -08:00
2019-07-30 17:27:37 +02:00
2019-12-30 11:58:02 -07:00
2019-09-27 11:17:38 -07:00
2019-12-02 17:35:04 -08:00