Re: [PATCH] btrfs: Remove redundant memory barriers

2018-02-23 Thread David Sterba
On Wed, Feb 14, 2018 at 10:53:36AM +0200, Nikolay Borisov wrote: > Using any kind of memory barriers around atomic operations which have > a return value is redundant, since those operations themselves are > fully ordered. atomic_t.txt states: > > - RMW operations that have a return value are

[PATCH] btrfs: Remove redundant memory barriers

2018-02-14 Thread Nikolay Borisov
Using any kind of memory barriers around atomic operations which have a return value is redundant, since those operations themselves are fully ordered. atomic_t.txt states: - RMW operations that have a return value are fully ordered; Fully ordered primitives are ordered against