Re: [PATCH for-8.1 v2 2/4] util/interval-tree: Use qatomic_set_mb in rb_link_node

2023-07-24 Thread Peter Maydell
On Sat, 22 Jul 2023 at 22:44, Richard Henderson wrote: > > Ensure that the stores to rb_left and rb_right are complete before > inserting the new node into the tree. Otherwise a concurrent reader > could see garbage in the new leaf. > > Cc: qemu-sta...@nongnu.org > Signed-off-by: Richard

[PATCH for-8.1 v2 2/4] util/interval-tree: Use qatomic_set_mb in rb_link_node

2023-07-22 Thread Richard Henderson
Ensure that the stores to rb_left and rb_right are complete before inserting the new node into the tree. Otherwise a concurrent reader could see garbage in the new leaf. Cc: qemu-sta...@nongnu.org Signed-off-by: Richard Henderson --- util/interval-tree.c | 6 +- 1 file changed, 5