From owner-freebsd-arch@FreeBSD.ORG Thu Apr 8 14:59:52 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E0DA16A4CE for ; Thu, 8 Apr 2004 14:59:52 -0700 (PDT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id A6EB443D49 for ; Thu, 8 Apr 2004 14:59:51 -0700 (PDT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id C87F0ACAEB; Thu, 8 Apr 2004 23:59:48 +0200 (CEST) Date: Thu, 8 Apr 2004 23:59:48 +0200 From: Pawel Jakub Dawidek To: Poul-Henning Kamp Message-ID: <20040408215948.GM661@darkness.comp.waw.pl> References: <20040408213647.GL661@darkness.comp.waw.pl> <29212.1081460407@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="s8J8qjRpxLkp1Gun" Content-Disposition: inline In-Reply-To: <29212.1081460407@critter.freebsd.dk> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 cc: freebsd-arch@freebsd.org Subject: Re: mtx_lock_recurse/mtx_unlock_recurse functions (proof-of-concept). X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Apr 2004 21:59:52 -0000 --s8J8qjRpxLkp1Gun Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 08, 2004 at 11:40:07PM +0200, Poul-Henning Kamp wrote: +> >As was discussed, it will be helpful to have functions, that are able +> >to acquire lock recursively, even if lock itself isn't recursable. +>=20 +> Sounds evil to me... Why? I don't think that better is to just use MTX_RECURSE if we don't need it in 90% of cases. And sometimes it is really hard to pass information if lock is held or not, just like for that rwatson's kqueue thing. +> Does your patch also make witness aware of this ? Nope, it is just a proof-of-concept and as jhb@ pointed out, we want to keep our interface simple, so it probably will never reach the tree. --=20 Pawel Jakub Dawidek http://www.FreeBSD.org pjd@FreeBSD.org http://garage.freebsd.pl FreeBSD committer Am I Evil? Yes, I Am! --s8J8qjRpxLkp1Gun Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAdctUForvXbEpPzQRArClAKCklcqQo6dXRn9oj0oes8DYHaKsrwCeL3fM COlYy2Qa3ZsI7+jWGksYYFc= =Ada8 -----END PGP SIGNATURE----- --s8J8qjRpxLkp1Gun--