Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755174AbaBSURX (ORCPT ); Wed, 19 Feb 2014 15:17:23 -0500 Received: from mail-ve0-f169.google.com ([209.85.128.169]:60897 "EHLO mail-ve0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753820AbaBSURR (ORCPT ); Wed, 19 Feb 2014 15:17:17 -0500 MIME-Version: 1.0 In-Reply-To: <53050501.3070101@hp.com> References: <1392669684-4807-1-git-send-email-Waiman.Long@hp.com> <53029167.4060109@zytor.com> <20140218073111.GW27965@twins.programming.kicks-ass.net> <5303B4C4.2040907@hp.com> <20140218212827.GR14089@laptop.programming.kicks-ass.net> <5303FDEC.9060001@hp.com> <20140219085107.GG27965@twins.programming.kicks-ass.net> <53050501.3070101@hp.com> Date: Wed, 19 Feb 2014 12:17:15 -0800 X-Google-Sender-Auth: 7lnrfoPBuB9inJH23BMn4yxvOFE Message-ID: Subject: Re: [PATCH v4 0/3] qspinlock: Introducing a 4-byte queue spinlock From: Linus Torvalds To: Waiman Long Cc: Peter Zijlstra , "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , Arnd Bergmann , "linux-arch@vger.kernel.org" , "the arch/x86 maintainers" , Linux Kernel Mailing List , Steven Rostedt , Andrew Morton , Michel Lespinasse , Andi Kleen , Rik van Riel , "Paul E. McKenney" , Raghavendra K T , George Spelvin , Tim Chen , Daniel J Blueman , Alexander Fyodorov , Aswin Chandramouleeswaran , Scott J Norton , Thavatchai Makphaibulchoke Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 19, 2014 at 11:24 AM, Waiman Long wrote: > > We do have a CONFIG_PARAVIRT macro that turns on or off PV support. The > queue spinlock can be easily changed into an unfair lock which allows lock > stealing. We could have a config option to make it unfair in the PARAVIRT > environment, but I don't think Linus like the idea of an unfair lock. I could care less for the paravirt case. As long as the native case ends up being sane (even when CONFIG_PARAVIRT is set at compile time), I'm fine. When actually running in a paravirtualized environment, locks are always going to have problems. Linus -- 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/