From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52321) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ciLWe-00079C-Vv for qemu-devel@nongnu.org; Mon, 27 Feb 2017 08:39:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ciLWe-0000T2-6S for qemu-devel@nongnu.org; Mon, 27 Feb 2017 08:39:40 -0500 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]:35507) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ciLWd-0000Sx-V3 for qemu-devel@nongnu.org; Mon, 27 Feb 2017 08:39:40 -0500 Received: by mail-wm0-x232.google.com with SMTP id v186so61526426wmd.0 for ; Mon, 27 Feb 2017 05:39:39 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20170227130120.6ec54cc2@bahia.lan> References: <20170227111726.9237-1-pbonzini@redhat.com> <20170227130120.6ec54cc2@bahia.lan> From: Peter Maydell Date: Mon, 27 Feb 2017 13:39:18 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] tests-aio-multithread: use atomic_read properly List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Greg Kurz Cc: Paolo Bonzini , QEMU Developers , Stefan Hajnoczi On 27 February 2017 at 12:01, Greg Kurz wrote: > On Mon, 27 Feb 2017 12:17:26 +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=C3=A9e >> Signed-off-by: Paolo Bonzini >> --- > > Cool ! I can use travis again :) > > Tested-by: Greg Kurz > Thanks; applied to master as a build fix. -- PMM