Re: [PATCH for-8.1 v2 1/4] util/interval-tree: Use qatomic_read for left/right while searching

2023-07-24 Thread Peter Maydell
On Sat, 22 Jul 2023 at 22:44, Richard Henderson wrote: > > Fixes a race condition (generally without optimization) in which > the subtree is re-read after the protecting if condition. > > Cc: qemu-sta...@nongnu.org > Signed-off-by: Richard Henderson > --- Reviewed-by: Peter Maydell thanks --

[PATCH for-8.1 v2 1/4] util/interval-tree: Use qatomic_read for left/right while searching

2023-07-22 Thread Richard Henderson
Fixes a race condition (generally without optimization) in which the subtree is re-read after the protecting if condition. Cc: qemu-sta...@nongnu.org Signed-off-by: Richard Henderson --- util/interval-tree.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git