[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] tests-aio-multithread: use atomic_read properly
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH] tests-aio-multithread: use atomic_read properly |
Date: |
Mon, 27 Feb 2017 13:39:18 +0000 |
On 27 February 2017 at 12:01, Greg Kurz <address@hidden> wrote:
> On Mon, 27 Feb 2017 12:17:26 +0100
> Paolo Bonzini <address@hidden> 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>
>> ---
>
> Cool ! I can use travis again :)
>
> Tested-by: Greg Kurz <address@hidden>
>
Thanks; applied to master as a build fix.
-- PMM