cvs commit: src/sys/kern kern_proc.c
Lukas Ertl
le at FreeBSD.org
Wed Jun 9 16:40:17 GMT 2004
On Wed, 9 Jun 2004, Garrett Wollman wrote:
> <<On Wed, 9 Jun 2004 18:28:57 +0200 (CEST), Lukas Ertl <le at 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 at FreeBSD.org http://people.freebsd.org/~le/
More information about the cvs-src
mailing list