From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752144AbcFJA55 (ORCPT ); Thu, 9 Jun 2016 20:57:57 -0400 Received: from ozlabs.org ([103.22.144.67]:53667 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751056AbcFJA54 (ORCPT ); Thu, 9 Jun 2016 20:57:56 -0400 Message-ID: <1465520274.26682.1.camel@ellerman.id.au> Subject: Re: [PATCH v3] powerpc: spinlock: Fix spin_unlock_wait() From: Michael Ellerman To: Peter Zijlstra Cc: Boqun Feng , linuxppc-dev@lists.ozlabs.org, Linux Kernel Mailing List , Benjamin Herrenschmidt , Paul Mackerras , "Paul E. McKenney" , Will Deacon Date: Fri, 10 Jun 2016 10:57:54 +1000 In-Reply-To: <20160609175054.GY30154@twins.programming.kicks-ass.net> References: <1465213340.2658.1.camel@ellerman.id.au> <20160606115655.GD30909@twins.programming.kicks-ass.net> <1465215445.2658.4.camel@ellerman.id.au> <20160606144659.GG30909@twins.programming.kicks-ass.net> <1465384845.13854.7.camel@ellerman.id.au> <20160608123507.GR30154@twins.programming.kicks-ass.net> <1465393760.10567.4.camel@ellerman.id.au> <20160608135903.GT30154@twins.programming.kicks-ass.net> <1465475008.16363.1.camel@ellerman.id.au> <20160609175054.GY30154@twins.programming.kicks-ass.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.16.5-1ubuntu3.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2016-06-09 at 19:50 +0200, Peter Zijlstra wrote: > On Thu, Jun 09, 2016 at 10:23:28PM +1000, Michael Ellerman wrote: > > Unfortunately the patch isn't 100%. > > So what I'll do; since my patch is trying to ensure all implementations > of spin_unlock_wait() provide ACQUIRE semantics, and this patch does > indeed do so, is skip touching PPC entirely and hope this patch lands > before 4.8. OK. I don't see any reason it wouldn't make 4.8, we just need to decide whether we use the old "while (lock->slock)" or one of the other options Boqun proposed. cheers