summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/super.c
diff options
context:
space:
mode:
authorNikolay Borisov <nborisov@suse.com>2018-02-14 10:53:36 +0200
committerDavid Sterba <dsterba@suse.com>2018-03-26 15:09:40 +0200
commitde224b7c56baa335bde9afcb4aa68f03c38f5f42 (patch)
tree638c272a174b666c8bd4b8c7cf836e3d53cdef19 /fs/btrfs/super.c
parent16db5758fef8c71b0353a7b5505496d6f9229820 (diff)
btrfs: Remove redundant memory barriers around dio_private error status
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 everything prior and everything subsequent. Therefore a fully ordered primitive is like having an smp_mb() before and an smp_mb() after the primitive. Given this let's replace the extra memory barriers with comments. Signed-off-by: Nikolay Borisov <nborisov@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/super.c')
0 files changed, 0 insertions, 0 deletions