From owner-freebsd-arch Thu Mar 28 13:48:12 2002 Delivered-To: freebsd-arch@freebsd.org Received: from angelica.unixdaemons.com (angelica.unixdaemons.com [209.148.64.135]) by hub.freebsd.org (Postfix) with ESMTP id 304A537B437; Thu, 28 Mar 2002 13:47:26 -0800 (PST) Received: from angelica.unixdaemons.com (bmilekic@localhost.unixdaemons.com [127.0.0.1]) by angelica.unixdaemons.com (8.12.2/8.12.1) with ESMTP id g2SLkJJX096244; Thu, 28 Mar 2002 16:46:19 -0500 (EST) X-Authentication-Warning: angelica.unixdaemons.com: Host bmilekic@localhost.unixdaemons.com [127.0.0.1] claimed to be angelica.unixdaemons.com Received: (from bmilekic@localhost) by angelica.unixdaemons.com (8.12.2/8.12.1/Submit) id g2SLkIG1096241; Thu, 28 Mar 2002 16:46:18 -0500 (EST) (envelope-from bmilekic) Date: Thu, 28 Mar 2002 16:46:18 -0500 From: Bosko Milekic To: John Baldwin Cc: arch@FreeBSD.ORG, Julian Elischer Subject: Re: SMP safe reference counting Message-ID: <20020328164618.A95605@unixdaemons.com> References: <20020328000240.A94897@unixdaemons.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from jhb@FreeBSD.ORG on Thu, Mar 28, 2002 at 09:45:02AM -0500 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, 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. > -- > > John Baldwin <>< http://www.FreeBSD.org/~jhb/ > "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ -- Bosko Milekic bmilekic@unixdaemons.com bmilekic@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message