HomeFreeBSD

buf_ring: Remove unneeded memory barriers

Description

buf_ring: Remove unneeded memory barriers

We no longer need a memory barrier on the compare and set operations.
If these fail then there are appropriate barriers on the loads earlier
in the loop, and if they succeed then no other threads can be accessing
the br_ring entry so any store to it is safe.

Reviewed by: alc
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D46381

Details

Provenance
andrewAuthored on Mon, Dec 9, 3:04 PM
Reviewer
alc
Differential Revision
D46381: buf_ring: Remove unneeded memory barriers
Parents
rG26743408e9ff: MFV: xz 5.6.3
Branches
Unknown
Tags
Unknown