[PATCH v2 0/1] ring: correct ordering issue in head/tail update
Wathsala Vithanage
wathsala.vithanage at arm.com
Thu Oct 2 19:41:36 CEST 2025
Hi all,
This patch fixes a subtle ordering issue in the ring code that can lead
to incorrect behavior under certain conditions. The change adopts a
solution that balances performance with compatibility for dependent
libraries.
For background, motivation, and validation (including Herd7 litmus
tests), see the accompanying write-up:
https://community.arm.com/arm-community-blogs/b/architectures-and-processors-blog/posts/when-a-barrier-does-not-block-the-pitfalls-of-partial-order
V1->V2:
* Switched from squashing unsafe partial orders (solution #3) to
* establishing a pairwise happens-before relationship between the
* producer and consumer heads (solution #2).
Wathsala Vithanage (1):
ring: safe partial ordering for head/tail update
lib/ring/rte_ring_c11_pvt.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--
2.43.0
More information about the dev
mailing list