From owner-cvs-all@FreeBSD.ORG Wed Jun 9 17:52:05 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 3591E16A4CE; Wed, 9 Jun 2004 17:52:05 +0000 (GMT) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [128.30.28.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id D516A43D1D; Wed, 9 Jun 2004 17:52:04 +0000 (GMT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: from khavrinen.lcs.mit.edu (localhost [IPv6:::1]) by khavrinen.lcs.mit.edu (8.12.9/8.12.9) with ESMTP id i59HpjkP053223 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK CN=khavrinen.lcs.mit.edu issuer=SSL+20Client+20CA); Wed, 9 Jun 2004 13:51:46 -0400 (EDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.12.9/8.12.9/Submit) id i59HpjSs053220; Wed, 9 Jun 2004 13:51:45 -0400 (EDT) (envelope-from wollman) Date: Wed, 9 Jun 2004 13:51:45 -0400 (EDT) From: Garrett Wollman Message-Id: <200406091751.i59HpjSs053220@khavrinen.lcs.mit.edu> To: Pawel Jakub Dawidek In-Reply-To: <20040609173747.GT12007@darkness.comp.waw.pl> References: <20040609.100413.118633043.imp@bsdimp.com> <55929.1086798000@critter.freebsd.dk> <200406091629.i59GTnCx052623@khavrinen.lcs.mit.edu> <20040609173747.GT12007@darkness.comp.waw.pl> X-Spam-Score: -19.8 () IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES X-Scanned-By: MIMEDefang 2.37 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 17:52:05 -0000 < said: > No, it is still wrong. The only good way is green's way. > You cannot destroy object even if you held its lock, because another > thread can sleep on this lock and it will be destroyed under it. Another thread cannot sleep on this lock because it does not have a reference to it. Your hypothetical list of elements counts as a reference. -GAWollman