From owner-cvs-all@FreeBSD.ORG Wed Jun 9 16:40:16 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EAE9616A4CE; Wed, 9 Jun 2004 16:40:16 +0000 (GMT) Received: from imap.univie.ac.at (mail.univie.ac.at [131.130.1.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6082B43D58; Wed, 9 Jun 2004 16:40:16 +0000 (GMT) (envelope-from le@FreeBSD.org) Received: from wireless (adslle.cc.univie.ac.at [131.130.102.11]) by imap.univie.ac.at (8.12.10/8.12.10) with ESMTP id i59Ge6c61253914; Wed, 9 Jun 2004 18:40:08 +0200 Date: Wed, 9 Jun 2004 18:40:07 +0200 (CEST) From: Lukas Ertl To: Garrett Wollman In-Reply-To: <200406091632.i59GWSmF052675@khavrinen.lcs.mit.edu> Message-ID: <20040609183915.F707@korben.in.tern> References: <55929.1086798000@critter.freebsd.dk> <20040609182606.X707@korben.in.tern> <200406091632.i59GWSmF052675@khavrinen.lcs.mit.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-DCC-ZID-Univie-Metrics: mail 4248; Body=4 Fuz1=4 Fuz2=4 cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern kern_proc.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jun 2004 16:40:17 -0000 On Wed, 9 Jun 2004, Garrett Wollman wrote: > < 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/