Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753799AbaATQQg (ORCPT ); Mon, 20 Jan 2014 11:16:36 -0500 Received: from cdptpa-outbound-snat.email.rr.com ([107.14.166.226]:50242 "EHLO cdptpa-oedge-vip.email.rr.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751868AbaATQQe (ORCPT ); Mon, 20 Jan 2014 11:16:34 -0500 Date: Mon, 20 Jan 2014 11:16:30 -0500 From: Steven Rostedt To: Peter Zijlstra Cc: Waiman Long , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Arnd Bergmann , linux-arch@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, 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: <20140120111630.7ceb0aa5@gandalf.local.home> In-Reply-To: <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> <20140120160806.GI30183@twins.programming.kicks-ass.net> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.22; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-RR-Connecting-IP: 107.14.168.142:25 X-Cloudmark-Score: 0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 20 Jan 2014 17:08:06 +0100 Peter Zijlstra wrote: > 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. Although having something that switches back to the old method gives more users the way to compare. Especially to catch any regressions. Make one release with it configurable, then drop it. -- Steve -- 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/