Date: Wed, 9 Jun 2004 18:40:07 +0200 (CEST) From: Lukas Ertl <le@FreeBSD.org> To: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> Cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern kern_proc.c Message-ID: <20040609183915.F707@korben.in.tern> In-Reply-To: <200406091632.i59GWSmF052675@khavrinen.lcs.mit.edu> References: <55929.1086798000@critter.freebsd.dk> <20040609182606.X707@korben.in.tern> <200406091632.i59GWSmF052675@khavrinen.lcs.mit.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 9 Jun 2004, Garrett Wollman wrote: > <<On Wed, 9 Jun 2004 18:28:57 +0200 (CEST), Lukas Ertl <le@FreeBSD.ORG> said: > >> Is there a possibility that foo->refcount is incremented after both of >> them left the critical section, so that i is 0, but foo->refcount isn't? > > The only way there can be such a possibility is if you haven't counted > all the references. You probably got me wrong, but you and others have already pointed out the race I was thinking of. :-) cheers, le -- Lukas Ertl http://homepage.univie.ac.at/l.ertl/ le@FreeBSD.org http://people.freebsd.org/~le/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040609183915.F707>