Re: [PATCH 1/5] smp_mb__{before,after}_atomic(): Update Documentation

From: Manfred Spraul
Date: Wed Nov 06 2019 - 14:23:15 EST


This is a multi-part message in MIME format. Hi Will,

On 11/1/19 5:49 PM, Will Deacon wrote:
Hi Manfred,

On Sun, Oct 20, 2019 at 02:33:01PM +0200, Manfred Spraul wrote:
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.
[...]

Although I think this is correct, I really think we should instead refer to
Documentation/atomic_t.txt and get rid of this out of memory-barriers.txt
entirely. It's just duplication and is out of date.

So you would prefer the attached patch?

For me this would be fine, too.


--

ÂÂÂ Manfred