Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757256AbYFWUqQ (ORCPT ); Mon, 23 Jun 2008 16:46:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754779AbYFWUqA (ORCPT ); Mon, 23 Jun 2008 16:46:00 -0400 Received: from relay1.sgi.com ([192.48.171.29]:44189 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754484AbYFWUp6 (ORCPT ); Mon, 23 Jun 2008 16:45:58 -0400 Date: Mon, 23 Jun 2008 13:45:57 -0700 (PDT) From: Christoph Lameter X-X-Sender: clameter@schroedinger.engr.sgi.com To: Peter Zijlstra cc: Petr Tesarik , Ingo Molnar , linux-kernel@vger.kernel.org Subject: Re: Spinlocks: Factor our GENERIC_LOCKBREAK in order to avoid spin with irqs disable In-Reply-To: <1214253593.11254.30.camel@twins> Message-ID: References: <20080507073017.GJ32195@elte.hu> <1214241561.19392.21.camel@elijah.suse.cz> <1214253593.11254.30.camel@twins> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 627 Lines: 16 On Mon, 23 Jun 2008, Peter Zijlstra wrote: > > It is good that the locks are build with _trylock and _can_lock because > > then we can reenable interrupts while spinning. > > Well, good and bad, the turn side is that fairness schemes like ticket > locks are utterly defeated. True. But maybe we can make these fairness schemes more generic so that they can go into core code? -- 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/