From owner-cvs-src@FreeBSD.ORG Fri Jan 16 14:26:02 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from green.bikeshed.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2576616A4CE; Fri, 16 Jan 2004 14:26:02 -0800 (PST) Received: from green.bikeshed.org (green@localhost [127.0.0.1]) by green.bikeshed.org (8.12.10/8.12.9) with ESMTP id i0GMQ1nU015200; Fri, 16 Jan 2004 17:26:01 -0500 (EST) (envelope-from green@green.bikeshed.org) Received: from localhost (green@localhost)i0GMQ1qN015197; Fri, 16 Jan 2004 17:26:01 -0500 (EST) Message-Id: <200401162226.i0GMQ1qN015197@green.bikeshed.org> X-Mailer: exmh version 2.6.3 04/04/2003 with nmh-1.0.4 To: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) In-Reply-To: Message from des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) of "Fri, 16 Jan 2004 22:57:55 +0100." From: "Brian F. Feldman" Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Fri, 16 Jan 2004 17:26:01 -0500 Sender: green@green.bikeshed.org cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern kern_descrip.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jan 2004 22:26:02 -0000 des@des.no (Dag-Erling =3D?iso-8859-1?q?Sm=3DF8rgrav?=3D) wrote: > Dag-Erling Smorgrav writes: > > WITNESS won't let us hold two filedesc locks at the same time, so j= uggle > > fdp and newfdp around a bit. > = > The question though is, is there a real reason why we can't hold two > filedesc locks at the same time, or is WITNESS being unnecessarily > pedantic? I don't see a reason "newfdp" needs to be locked, since it is not referen= ced = by anything yet. If "fdp" alone is locked, that is sufficient to ensure = they will both be consistent. -- = Brian Fundakowski Feldman \'[ FreeBSD ]''''''''= ''\ <> green@FreeBSD.org \ The Power to Serv= e! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,= ,,,,\