Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755906AbXKBQw3 (ORCPT ); Fri, 2 Nov 2007 12:52:29 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753615AbXKBQwV (ORCPT ); Fri, 2 Nov 2007 12:52:21 -0400 Received: from smtp2.linux-foundation.org ([207.189.120.14]:50103 "EHLO smtp2.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750983AbXKBQwU (ORCPT ); Fri, 2 Nov 2007 12:52:20 -0400 Date: Fri, 2 Nov 2007 09:51:27 -0700 (PDT) From: Linus Torvalds To: Chuck Ebbert cc: Nick Piggin , Linux Kernel Mailing List , Andi Kleen , Ingo Molnar Subject: Re: [patch 1/4] x86: FIFO ticket spinlocks In-Reply-To: <472B4ECE.7010602@redhat.com> Message-ID: References: <20071101140146.GA26879@wotan.suse.de> <20071101140320.GC26879@wotan.suse.de> <472B4ECE.7010602@redhat.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 626 Lines: 19 On Fri, 2 Nov 2007, Chuck Ebbert wrote: > > There's also a very easy way to get better fairness with our current spinlocks: > use xchg to release the lock instead of mov. That does nothing at all. Yes, it slows the unlock down, which in turn on some machines will make it easier for another core/socket to get it, but it's purely about the slowdown, nothing else. 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/