From owner-freebsd-arch Thu Mar 28 14:20:26 2002 Delivered-To: freebsd-arch@freebsd.org Received: from rwcrmhc54.attbi.com (rwcrmhc54.attbi.com [216.148.227.87]) by hub.freebsd.org (Postfix) with ESMTP id E1AAA37B41E; Thu, 28 Mar 2002 14:20:11 -0800 (PST) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc54.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020328222010.PGOA1214.rwcrmhc54.attbi.com@InterJet.elischer.org>; Thu, 28 Mar 2002 22:20:10 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id OAA54346; Thu, 28 Mar 2002 14:14:31 -0800 (PST) Date: Thu, 28 Mar 2002 14:14:31 -0800 (PST) From: Julian Elischer To: Bosko Milekic Cc: John Baldwin , arch@FreeBSD.ORG Subject: Re: SMP safe reference counting In-Reply-To: <20020328164618.A95605@unixdaemons.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 28 Mar 2002, Bosko Milekic wrote: > > On Thu, Mar 28, 2002 at 09:45:02AM -0500, John Baldwin wrote: > > > > On 28-Mar-2002 Bosko Milekic wrote: > > > > > > I don't think we really need a ref. count API, per-se. I can think of > > > several places that may need to do ref. counting but wouldn't want to > > > do it with a bus-locked instruction because their reference counter(s) > > > are already protected by an existing mutex. > > > > > > -Bosko > > > > Those places wouldn't use the API then I think. However, this would be good > > for things like ucreds, pargs, uidinfos and others. > > Yeah, absolutely. I was just pointing out that there's little point > in having a reference counting API when a lot of the reference counting > implementations won't be using it. but a lot would.. and that's GOOD. John, can you put your sugfgested API up again? I remember it would work but was (in my mind) 'different'. I didn't think it was intuative but at least get it up for discussion.. (I posted my suggested API a few mails ago.. I'm sure it too has weaknesses though) Julian > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message