diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2017-02-27 12:17:26 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2017-02-27 14:00:53 +0000 |
commit | 1ab17f9f5c63c2798d707aeb22588e4fcc17b2cd (patch) | |
tree | 6ae3e0784c3a75bcea37c3d30bce2c2fb8a0b5f1 /user-exec-stub.c | |
parent | d045c466d9e62b4321fadf586d024d54ddfd8bd4 (diff) |
tests-aio-multithread: use atomic_read properly
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 <alex.bennee@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Tested-by: Greg Kurz <groug@kaod.org>
Message-id: 20170227111726.9237-1-pbonzini@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'user-exec-stub.c')
0 files changed, 0 insertions, 0 deletions