From owner-freebsd-stable@FreeBSD.ORG Tue Jul 6 08:08:45 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 AC2BF16A4CF; Tue, 6 Jul 2004 08:08:45 +0000 (GMT) Received: from ylpvm29.prodigy.net (ylpvm29-ext.prodigy.net [207.115.57.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6906C43D55; Tue, 6 Jul 2004 08:08:45 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (adsl-67-115-72-244.dsl.lsan03.pacbell.net [67.115.72.244]) i6688eCZ007453; Tue, 6 Jul 2004 04:08:40 -0400 Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id EB01552D89; Tue, 6 Jul 2004 01:08:42 -0700 (PDT) Date: Tue, 6 Jul 2004 01:08:42 -0700 From: Kris Kennaway To: Tim Robbins Message-ID: <20040706080842.GA23037@xor.obsecurity.org> 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> <20040706071732.GA64106@cat.robbins.dropbear.id.au> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AqsLC8rIMeq19msA" Content-Disposition: inline In-Reply-To: <20040706071732.GA64106@cat.robbins.dropbear.id.au> User-Agent: Mutt/1.4.2.1i cc: freebsd-stable@freebsd.org cc: ngl 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 08:08:45 -0000 --AqsLC8rIMeq19msA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 06, 2004 at 05:17:32PM +1000, Tim Robbins wrote: > On Tue, Jul 06, 2004 at 12:45:27PM +0600, ngl wrote: > > That means, freebsd stable has no spin rwlocks ? >=20 > Right. Reader-writer spinlocks would not be very useful in FreeBSD 4; bec= ause > 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= ). i.e. perhaps you really want to be using FreeBSD 5. Kris --AqsLC8rIMeq19msA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFA6l4KWry0BWjoQKURAu41AKDz1jggNG5kIM8d1PaL7vKA79LWfwCePS2Y 77GjTjFvHE2AZ6EwomEtAeI= =glL0 -----END PGP SIGNATURE----- --AqsLC8rIMeq19msA--