Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755067AbaAUQBE (ORCPT ); Tue, 21 Jan 2014 11:01:04 -0500 Received: from g5t0009.atlanta.hp.com ([15.192.0.46]:41651 "EHLO g5t0009.atlanta.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754466AbaAUQBC (ORCPT ); Tue, 21 Jan 2014 11:01:02 -0500 Message-ID: <52DE99BA.1090204@hp.com> Date: Tue, 21 Jan 2014 11:00:58 -0500 From: Waiman Long User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130109 Thunderbird/10.0.12 MIME-Version: 1.0 To: Steven Rostedt CC: Peter Zijlstra , 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 , "" , Scott J Norton Subject: Re: [PATCH v9 2/5] qrwlock x86: Enable x86 to use queue read/write lock 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> <20140120111630.7ceb0aa5@gandalf.local.home> In-Reply-To: <20140120111630.7ceb0aa5@gandalf.local.home> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/20/2014 11:16 AM, Steven Rostedt wrote: > 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 Yes, I agree that it will be more prudent to leave the original rwlock implementation there for one or two release cycles before getting rid of them entirely. -Longman -- 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/