HomeFreeBSD

buf_ring: Use atomic accesses for head/tail values

Description

buf_ring: Use atomic accesses for head/tail values

Use explicit atomic load/store operations for all producer and consumer
head and tail accesses. This allows us to remove the volatile
annotation from these variables.

Reviewed by: alc, imp, kib, markj
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D46380

Details

Provenance
andrewAuthored on Sep 27 2024, 3:15 PM
Reviewer
alc
Differential Revision
D46380: buf_ring: Use atomic accesses for head/tail values
Parents
rG8e95079e1758: buf_ring: Add a threaded test
Branches
Unknown
Tags
Unknown