From owner-freebsd-current@FreeBSD.ORG Sun Aug 15 17:07:39 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 55D5D16A4CE for ; Sun, 15 Aug 2004 17:07:39 +0000 (GMT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E35A43D1D for ; Sun, 15 Aug 2004 17:07:39 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.11/8.12.11) with ESMTP id i7FH5nI1062010; Sun, 15 Aug 2004 13:05:49 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)i7FH5mLa062007; Sun, 15 Aug 2004 13:05:49 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Sun, 15 Aug 2004 13:05:48 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: =?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?= In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE cc: Martin Blapp cc: freebsd-current@freebsd.org Subject: Re: Witness panic in pseudofs_vncache X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Aug 2004 17:07:39 -0000 On Sun, 15 Aug 2004, Dag-Erling Sm=F8rgrav wrote: > Robert Watson writes: > > This appears to be a bug in pseudofs due to calling vgone() while holdi= ng > > the pfs_vncache_mutex, as vgone() can sleep due to acquiring lockmgr > > locks. The fix is likely to make this looping even less efficient by > > dropping the mutex before calling vgone() on a vnode, and then restarti= ng. > > I've CC'd DES because this is his baby. >=20 > What do you think of the attached patch?=20 Has all the good and bad attributes I had expected, but hopefully will fix the problem :-). Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Principal Research Scientist, McAfee Research