Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759652AbaGRDHt (ORCPT ); Thu, 17 Jul 2014 23:07:49 -0400 Received: from g4t3426.houston.hp.com ([15.201.208.54]:34397 "EHLO g4t3426.houston.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754676AbaGRDHs (ORCPT ); Thu, 17 Jul 2014 23:07:48 -0400 Message-ID: <1405652857.21735.7.camel@buesod1.americas.hpqcorp.net> Subject: Re: [tip:locking/urgent] locking/mutex: Disable optimistic spinning on some architectures From: Davidlohr Bueso To: mingo@kernel.org, torvalds@linux-foundation.org, catalin.marinas@arm.com, peterz@infradead.org, cmetcalf@tilera.com, jason.low2@hp.com, linux@arm.linux.org.uk, tglx@linutronix.de, linux-kernel@vger.kernel.org, hpa@zytor.com, dave.anglin@bell.net, James.Bottomley@hansenpartnership.com, will.deacon@arm.com, waiman.long@hp.com, james.hogan@imgtec.com, mpatocka@redhat.com, davem@davemloft.net, paulmck@linux.vnet.ibm.com, vgupta@synopsys.com, benh@kernel.crashing.org, jejb@parisc-linux.org Cc: linux-tip-commits@vger.kernel.org, stable@kernel.org Date: Thu, 17 Jul 2014 20:07:37 -0700 In-Reply-To: References: <20140606175316.GV13930@laptop.programming.kicks-ass.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.6.4 (3.6.4-3.fc18) 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 Wed, 2014-07-16 at 12:24 -0700, tip-bot for Peter Zijlstra wrote: > Commit-ID: 4badad352a6bb202ec68afa7a574c0bb961e5ebc > Gitweb: http://git.kernel.org/tip/4badad352a6bb202ec68afa7a574c0bb961e5ebc > Author: Peter Zijlstra > AuthorDate: Fri, 6 Jun 2014 19:53:16 +0200 > Committer: Ingo Molnar > CommitDate: Wed, 16 Jul 2014 14:57:07 +0200 > > locking/mutex: Disable optimistic spinning on some architectures > > The optimistic spin code assumes regular stores and cmpxchg() play nice; > this is found to not be true for at least: parisc, sparc32, tile32, > metag-lock1, arc-!llsc and hexagon. > > There is further wreckage, but this in particular seemed easy to > trigger, so blacklist this. > > Opt in for known good archs. > > Signed-off-by: Peter Zijlstra > Reported-by: Mikulas Patocka > Cc: David Miller > Cc: Chris Metcalf > Cc: James Bottomley > Cc: Vineet Gupta > Cc: Jason Low > Cc: Waiman Long > Cc: "James E.J. Bottomley" > Cc: Paul McKenney > Cc: John David Anglin > Cc: James Hogan > Cc: Linus Torvalds > Cc: Davidlohr Bueso > Cc: stable@vger.kernel.org > Cc: Benjamin Herrenschmidt > Cc: Catalin Marinas > Cc: Russell King > Cc: Will Deacon > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-kernel@vger.kernel.org > Cc: linuxppc-dev@lists.ozlabs.org > Cc: sparclinux@vger.kernel.org > Link: http://lkml.kernel.org/r/20140606175316.GV13930@laptop.programming.kicks-ass.net > Signed-off-by: Ingo Molnar Cc'ing stable: this issue was reported to begin after commit fb0527bd, so since v3.13. Thanks, Davidlohr -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/