From owner-freebsd-arch Thu Mar 28 15: 0:52 2002 Delivered-To: freebsd-arch@freebsd.org Received: from rwcrmhc53.attbi.com (rwcrmhc53.attbi.com [204.127.198.39]) by hub.freebsd.org (Postfix) with ESMTP id 42E9437B429; Thu, 28 Mar 2002 15:00:30 -0800 (PST) Received: from InterJet.elischer.org ([12.232.206.8]) by rwcrmhc53.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020328230030.EADT2951.rwcrmhc53.attbi.com@InterJet.elischer.org>; Thu, 28 Mar 2002 23:00:30 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id OAA54528; Thu, 28 Mar 2002 14:45:19 -0800 (PST) Date: Thu, 28 Mar 2002 14:45:19 -0800 (PST) From: Julian Elischer To: John Baldwin Cc: arch@FreeBSD.ORG, Bosko Milekic Subject: Re: SMP safe reference counting In-Reply-To: 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, John Baldwin wrote: oops I see it's there.. you just mispelled the path.. sorry > > It's old but it's been at ~jhb/paches/refcount.patch for about an eternity > right now. The changes I would make to it are that I would change > refcount_drop() (or release or whatever it is called) to return the current > value rather than a boolean about the value being 0 or not. Also, once > atomic_fetchadd() is done, it will change a fair bit. There would just be > a MI header, no MD stuff, and we woudln't use a mutex for the debug version > that uses asserts. > > > Julian > > -- > > John Baldwin <>< http://www.FreeBSD.org/~jhb/ > "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message