Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754144AbaATQI4 (ORCPT ); Mon, 20 Jan 2014 11:08:56 -0500 Received: from merlin.infradead.org ([205.233.59.134]:60672 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753759AbaATQIw (ORCPT ); Mon, 20 Jan 2014 11:08:52 -0500 Date: Mon, 20 Jan 2014 17:08:06 +0100 From: Peter Zijlstra To: Waiman Long Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Arnd Bergmann , linux-arch@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, Steven Rostedt , Andrew Morton , Michel Lespinasse , Andi Kleen , Rik van Riel , "Paul E. McKenney" , Linus Torvalds , Raghavendra K T , George Spelvin , Tim Chen , "Aswin Chandramouleeswaran\"" , Scott J Norton Subject: Re: [PATCH v9 2/5] qrwlock x86: Enable x86 to use queue read/write lock Message-ID: <20140120160806.GI30183@twins.programming.kicks-ass.net> References: <1389761047-47566-1-git-send-email-Waiman.Long@hp.com> <1389761047-47566-3-git-send-email-Waiman.Long@hp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1389761047-47566-3-git-send-email-Waiman.Long@hp.com> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 14, 2014 at 11:44:04PM -0500, Waiman Long wrote: > This patch makes the necessary changes at the x86 architecture specific > layer to enable the presence of the CONFIG_QUEUE_RWLOCK kernel option > to replace the read/write lock by the queue read/write lock. > > It also enables the CONFIG_QUEUE_RWLOCK option by default for x86 which > will force the use of queue read/write lock. That will greatly improve > the fairness of read/write lock and eliminate live-lock situation > where one task may not get the lock for an indefinite period of time. > > Signed-off-by: Waiman Long > Reviewed-by: Paul E. McKenney > --- > arch/x86/Kconfig | 1 + > arch/x86/include/asm/spinlock.h | 2 ++ > arch/x86/include/asm/spinlock_types.h | 4 ++++ > 3 files changed, 7 insertions(+), 0 deletions(-) This patch doesn't have nearly enough -, you should rip out all traces of the old rwlock. There's no point in having it configurable, either qrwlock is good or not. -- 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/