qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] tests-aio-multithread: use atomic_read properly


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH] tests-aio-multithread: use atomic_read properly
Date: Mon, 27 Feb 2017 14:01:01 +0000
User-agent: Mutt/1.7.1 (2016-10-04)

On Mon, Feb 27, 2017 at 12:17:26PM +0100, Paolo Bonzini wrote:
> nodes[id].next is written by other threads.  If atomic_read is not used
> (matching atomic_set in mcs_mutex_lock!) the compiler can optimize the
> whole "if" away!
> 
> Reported-by: Alex Bennée <address@hidden>
> Signed-off-by: Paolo Bonzini <address@hidden>
> ---
>  tests/test-aio-multithread.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block

Stefan

Attachment: signature.asc
Description: PGP signature


reply via email to

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