From owner-freebsd-stable@FreeBSD.ORG Tue Jul 6 07:13:32 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BFFC416A4CE for ; Tue, 6 Jul 2004 07:13:32 +0000 (GMT) Received: from robbins.dropbear.id.au (061.a.006.mel.iprimus.net.au [210.50.44.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1FE7643D3F for ; Tue, 6 Jul 2004 07:13:32 +0000 (GMT) (envelope-from tim@robbins.dropbear.id.au) Received: by robbins.dropbear.id.au (Postfix, from userid 1000) id 4A300421E; Tue, 6 Jul 2004 17:17:32 +1000 (EST) Date: Tue, 6 Jul 2004 17:17:32 +1000 From: Tim Robbins To: ngl Message-ID: <20040706071732.GA64106@cat.robbins.dropbear.id.au> References: <0e0401c46312$089eea10$8501a8c0@spirit> <20040706050055.GA63647@cat.robbins.dropbear.id.au> <0e3d01c46316$df50c7a0$8501a8c0@spirit> <20040706054134.GB63647@cat.robbins.dropbear.id.au> <0e6601c46324$d335afe0$8501a8c0@spirit> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0e6601c46324$d335afe0$8501a8c0@spirit> User-Agent: Mutt/1.4.1i cc: freebsd-stable@freebsd.org Subject: Re: Shared/exclusive (rw) locks X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jul 2004 07:13:32 -0000 On Tue, Jul 06, 2004 at 12:45:27PM +0600, ngl wrote: > That means, freebsd stable has no spin rwlocks ? Right. Reader-writer spinlocks would not be very useful in FreeBSD 4; because only one thread can be running in the kernel at once, the only opportunity you'd have to share reader locks would be if you slept while holding a spinlock, which is a bad idea (and not permitted by FreeBSD 5 or Linux). If you want -rwlocks, you'll have to use lockmgr() (which is a sleep lock). Tim