Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 9 Mar 2002 02:14:50 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 9 Mar 2002 02:14:39 -0500 Received: from zeus.kernel.org ([204.152.189.113]:61645 "EHLO zeus.kernel.org") by vger.kernel.org with ESMTP id ; Sat, 9 Mar 2002 02:14:26 -0500 From: Rusty Russell To: Peter =?ISO-8859-1?Q?W=E4chtler?= Cc: frankeh@watson.ibm.com, arjanv@redhat.com, linux-kernel@vger.kernel.org Subject: Re: furwocks: Fast Userspace Read/Write Locks In-Reply-To: Your message of "Fri, 08 Mar 2002 10:21:08 BST." <3C888284.8030206@loewe-komp.de> Date: Sat, 09 Mar 2002 15:50:37 +1100 Message-Id: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org In message <3C888284.8030206@loewe-komp.de> you write: > Rusty Russell wrote: > > To clarify: I'd love this, but rwlocks in the kernel aren't even > > vaguely fair. With a steady stream of overlapping readers, a writer > > will never get the lock. > > > > Hope that clarifies, > > > But you talk about the current implementation, don't you? > Is there something to prevent an implementation of rwlocks in the > kernel, where a wrlock will lock (postponed) further rdlock requests? It's proven hard to do without performance impact. Also, we can't do rw semaphores in a single word: you need two. Disproving me by implementation VERY welcome! Hope that helps, Rusty. -- Anyone who quotes me in their sig is an idiot. -- Rusty Russell. - 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/