qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 6/8] aio-wait: switch to smp_mb__after_rmw()


From: Richard Henderson
Subject: Re: [PATCH 6/8] aio-wait: switch to smp_mb__after_rmw()
Date: Sun, 5 Mar 2023 11:32:44 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1

On 3/3/23 09:19, Paolo Bonzini wrote:
The barrier comes after an atomic increment, so it is enough to use
smp_mb__after_rmw(); this avoids a double barrier on x86 systems.

Signed-off-by: Paolo Bonzini<pbonzini@redhat.com>
---
  include/block/aio-wait.h | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]