Return-Path: Received: from ozlabs.org (ozlabs.org [103.22.144.67]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3rYTRX2NxTzDqGh for ; Tue, 21 Jun 2016 10:40:56 +1000 (AEST) In-Reply-To: <20160610035128.21087-1-boqun.feng@gmail.com> To: Boqun Feng , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org From: Michael Ellerman Cc: Peter Zijlstra , Boqun Feng , Will Deacon , Alexander Graf , Paul Mackerras , "Suresh E. Warrier" , "Paul E. McKenney" Subject: Re: [v4] powerpc: spinlock: Fix spin_unlock_wait() Message-Id: <3rYTRV50CZz9t0w@ozlabs.org> Date: Tue, 21 Jun 2016 10:40:54 +1000 (AEST) List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, 2016-10-06 at 03:51:28 UTC, Boqun Feng wrote: > There is an ordering issue with spin_unlock_wait() on powerpc, because > the spin_lock primitive is an ACQUIRE and an ACQUIRE is only ordering > the load part of the operation with memory operations following it. ... > > Suggested-by: "Paul E. McKenney" > Signed-off-by: Boqun Feng > Reviewed-by: "Paul E. McKenney" > [mpe: Inline the "nop" ll/sc loop and set EH=0, munge change log] > Signed-off-by: Michael Ellerman Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/6262db7c088bbfc26480d10144 cheers