Received: from eggs.gnu.org ([2001:4830:134:3::10]:43980) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5XnF-00039A-UI for qemu-devel@nongnu.org; Wed, 25 May 2016 08:20:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b5XnA-0006gf-Pd for qemu-devel@nongnu.org; Wed, 25 May 2016 08:20:08 -0400 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]:36482) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5XnA-0006gT-IG for qemu-devel@nongnu.org; Wed, 25 May 2016 08:20:04 -0400 Received: by mail-wm0-x229.google.com with SMTP id n129so178829741wmn.1 for ; Wed, 25 May 2016 05:20:04 -0700 (PDT) Sender: Paolo Bonzini References: <1464120374-8950-1-git-send-email-cota@braap.org> <1464120374-8950-4-git-send-email-cota@braap.org> From: Paolo Bonzini Message-ID: <1ed20476-934e-4ed7-89ea-69ec3d2f6680@redhat.com> Date: Wed, 25 May 2016 14:20:02 +0200 MIME-Version: 1.0 In-Reply-To: <1464120374-8950-4-git-send-email-cota@braap.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 3/3] atomics: do not emit consume barrier for atomic_rcu_read List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Emilio G. Cota" , QEMU Developers , MTTCG Devel Cc: =?UTF-8?Q?Alex_Benn=c3=a9e?= , Richard Henderson , Sergey Fedorov On 24/05/2016 22:06, Emilio G. Cota wrote: > Currently we emit a consume-load in atomic_rcu_read. This is > overkill for non-Sparc hosts, and is only useful to make > things easier for Thread Sanitizer, which as far as I understand > works best without explicit fences. Likewise: Currently we emit a consume-load in atomic_rcu_read. Because of limitations in current compilers, this is overkill for non-Alpha hosts and it is only useful to make Thread Sanitizer work. and +/* See above: most compilers currently treat consume and acquire the + * same, but this slows down atomic_rcu_read unnecessarily. + */ Thanks, Paolo