From owner-freebsd-fs@FreeBSD.ORG Mon Dec 6 20:56:29 2004 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC3F316A4CE for ; Mon, 6 Dec 2004 20:56:29 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 934C043D54; Mon, 6 Dec 2004 20:56:29 +0000 (GMT) (envelope-from kan@FreeBSD.org) Received: from freefall.freebsd.org (kan@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id iB6KuTVK003680; Mon, 6 Dec 2004 20:56:29 GMT (envelope-from kan@freefall.freebsd.org) Received: (from kan@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id iB6KuS20003679; Mon, 6 Dec 2004 20:56:28 GMT (envelope-from kan) Date: Mon, 6 Dec 2004 20:56:28 +0000 From: Alexander Kabaev To: Thomas Nystrom Message-ID: <20041206205628.GA3309@freefall.freebsd.org> References: <41B0C899.C005AE1E@saeab.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41B0C899.C005AE1E@saeab.se> User-Agent: Mutt/1.4.2.1i cc: freebsd-fs@freebsd.org Subject: Re: Dead vnode locking against itself X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Dec 2004 20:56:29 -0000 On Fri, Dec 03, 2004 at 09:12:09PM +0100, Thomas Nystrom wrote: > > If I look at the source I can see that in sys/kern/vfs_subr.c:2696 > (in vgonel) the vnode is locked by VI_XLOCK. Later on (via vclean) > dead_lock is called and founds that the vnode is locked. It then > waits for it to be unlocked and the results is a hanged process. > > What have I missed or have I found a bug? > > /thn > I wonder why vclean was called on a vnode with dead_vnodeops in the first place. Could you please post an output of 'print *vp' for the vnode being cleaned? -- Alexander Kabaev