summaryrefslogtreecommitdiffstats
path: root/crypto/cipher.c
diff options
context:
space:
mode:
authorPaolo Bonzini2017-02-27 12:17:26 +0100
committerPeter Maydell2017-02-27 13:54:08 +0100
commit3b1d8169844fafee184366b0e0d7080534758b4d (patch)
tree8f494ceb20aecaeea0d11077de547e102a9ba54f /crypto/cipher.c
parentMerge remote-tracking branch 'remotes/artyom/tags/pull-sun4v-20170226' into s... (diff)
downloadqemu-3b1d8169844fafee184366b0e0d7080534758b4d.tar.gz
qemu-3b1d8169844fafee184366b0e0d7080534758b4d.tar.xz
qemu-3b1d8169844fafee184366b0e0d7080534758b4d.zip
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: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'crypto/cipher.c')
0 files changed, 0 insertions, 0 deletions