From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from one.firstfloor.org (one.firstfloor.org [213.235.205.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 710461007D5 for ; Fri, 13 May 2011 00:34:54 +1000 (EST) Date: Thu, 12 May 2011 16:08:32 +0200 From: Andi Kleen To: Milton Miller Subject: Re: [PATCH] seqlock: don't smp_rmb in seqlock reader spin loop Message-ID: <20110512140832.GK6008@one.firstfloor.org> References: <1304703767.3066.211.camel@edumazet-laptop> <20110506175051.GL11636@one.firstfloor.org> <1304710003.2821.0.camel@edumazet-laptop> <1304712267.2821.29.camel@edumazet-laptop> <1304713443.20980.124.camel@work-vm> <1304721004.2821.148.camel@edumazet-laptop> <1304722000.20980.130.camel@work-vm> <1304722835.2821.192.camel@edumazet-laptop> <1304724519.20980.139.camel@work-vm> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Cc: Nick Piggin , Eric Dumazet , Ingo Molnar , linux-kernel@vger.kernel.org, Linus Torvalds , Andi Kleen , Anton Blanchard , Andrew Morton , linuxppc-dev@lists.ozlabs.org, Thomas Gleixner List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, May 12, 2011 at 04:13:54AM -0500, Milton Miller wrote: > > Move the smp_rmb after cpu_relax loop in read_seqlock and add > ACCESS_ONCE to make sure the test and return are consistent. > > A multi-threaded core in the lab didn't like the update Which core was that? -Andi