From owner-freebsd-arch@FreeBSD.ORG Mon Jun 2 15:38:17 2008 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DF4731065677 for ; Mon, 2 Jun 2008 15:38:17 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from proxy.meer.net (proxy.meer.net [64.13.141.13]) by mx1.freebsd.org (Postfix) with ESMTP id D22218FC22 for ; Mon, 2 Jun 2008 15:38:17 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from mail.meer.net (mail.meer.net [209.157.152.14]) by proxy.meer.net (8.14.2/8.14.2) with ESMTP id m52FbdEa009879; Mon, 2 Jun 2008 08:37:56 -0700 (PDT) (envelope-from gnn@neville-neil.com) Received: from mail2.meer.net (mail2.meer.net [64.13.141.16]) by mail.meer.net (8.13.3/8.13.3/meer) with ESMTP id m52FYsiX093207; Mon, 2 Jun 2008 08:34:56 -0700 (PDT) (envelope-from gnn@neville-neil.com) Received: from minion.local.neville-neil.com (hudson-trading.com [66.150.84.160] (may be forged)) (authenticated bits=0) by mail2.meer.net (8.14.1/8.14.1) with ESMTP id m52FYrtX082447; Mon, 2 Jun 2008 08:34:53 -0700 (PDT) (envelope-from gnn@neville-neil.com) Date: Mon, 02 Jun 2008 11:34:53 -0400 Message-ID: From: "George V. Neville-Neil" To: Julian Elischer In-Reply-To: <48439D06.6020408@elischer.org> References: <483EE7D5.5050408@elischer.org> <20080601215759.GN64397@hoeg.nl> <4843808A.2060501@elischer.org> <48439D06.6020408@elischer.org> User-Agent: Wanderlust/2.15.5 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.7 Emacs/22.1.50 (i386-apple-darwin8.11.1) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Canit-CHI2: 0.50 X-Bayes-Prob: 0.5 (Score 0, tokens from: ) X-Spam-Score: 0.00 () [Tag at 5.00] X-CanItPRO-Stream: default X-Canit-Stats-ID: 543825 - 743419b95ec6 X-Scanned-By: CanIt (www . roaringpenguin . com) on 64.13.141.13 Cc: arch@freebsd.org, Ed Schouten Subject: Re: all mutexes -> read-write locks? X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jun 2008 15:38:18 -0000 At Mon, 02 Jun 2008 00:11:02 -0700, julian wrote: > > Daniel Eischen wrote: > > I'd rather not. What do you have against them? > > People use them without thinking about whether they need to be so > strict. This is an age old problem that removing mutexes will never fix. We could add documentation to the manual pages though saying, "Do you really really need this?" > > Their API is simple enough to use. If there is code that really > > wants to have multiple readers, by all means change it to use > > rwlocks. > > > yes but we have a lot of code that uses mutexes.. changing it would > allow a slow transition to using rw locks. We will likely have to do that ourselves. Sorry, but this is a Sisyphean task, and removing mutexes will not prevent the rock from falling back upon us again. Best, George