From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com ([66.187.233.31]:51979 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760728AbWLHN6y (ORCPT ); Fri, 8 Dec 2006 08:58:54 -0500 From: David Howells In-Reply-To: <20061208022259.GB11551@wotan.suse.de> References: <20061208022259.GB11551@wotan.suse.de> <20061204144634.GA14383@wotan.suse.de> <20061204100607.GA20529@wotan.suse.de> <29183.1165236916@redhat.com> <25001.1165350982@redhat.com> Subject: Re: [patch][rfc] rwsem: generic rwsem Date: Fri, 08 Dec 2006 13:58:42 +0000 Message-ID: <4548.1165586322@redhat.com> Sender: linux-arch-owner@vger.kernel.org To: Nick Piggin Cc: David Howells , Linux Kernel Mailing List , linux-arch@vger.kernel.org, Linus Torvalds , Andrew Morton List-ID: Nick Piggin wrote: > > Look at how the counter works in the XADD-based version. That's the way > > it is *because* I'm using XADD. That's quite limiting. > > Not really. ll/sc architectures "emulate" xadd the same as they would > emulate a spinlock. There is nothing suboptimal about it. Yes, really. You've missed the point entirely. Look at *how* the counter *works*. David