From owner-freebsd-current@FreeBSD.ORG Mon Jul 30 11:58:05 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2009E16A417; Mon, 30 Jul 2007 11:58:05 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from ns.trinitel.com (186.161.36.72.static.reverse.layeredtech.com [72.36.161.186]) by mx1.freebsd.org (Postfix) with ESMTP id EBC9D13C48D; Mon, 30 Jul 2007 11:58:04 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from proton.local (209-163-168-124.static.twtelecom.net [209.163.168.124]) (authenticated bits=0) by ns.trinitel.com (8.14.1/8.14.1) with ESMTP id l6UBw2V9022228; Mon, 30 Jul 2007 06:58:03 -0500 (CDT) (envelope-from anderson@freebsd.org) Message-ID: <46ADD24A.1080800@freebsd.org> Date: Mon, 30 Jul 2007 06:58:02 -0500 From: Eric Anderson User-Agent: Thunderbird 2.0.0.5 (Macintosh/20070716) MIME-Version: 1.0 To: Peter Schuller References: <200707282028.37102.peter.schuller@infidyne.com> <20070728175426.GF1092@garage.freebsd.pl> <200707292157.09742.peter.schuller@infidyne.com> In-Reply-To: <200707292157.09742.peter.schuller@infidyne.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on ns.trinitel.com Cc: freebsd-current@freebsd.org, Pawel Jakub Dawidek Subject: Re: (ZFS?): panic: lockmgr: locking against myself X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 30 Jul 2007 11:58:05 -0000 Peter Schuller wrote: >> Could you paste the output of: >> >> db> show vnode 0x >> >> Where is the first argument to vrele() function above. > > I was not able to get ddb to include function arguments in backtraces for some > reason, but I inserted a pointer printout before each of the two calls to > vrele() in mountcheckdirs(). > > Based on the last printout prior to panic, it is the second call in the > function (code line wise; i.e., when locking rootvnode) that is triggering > the panic, on this vnode: > > vnode 0xffffff00037473e0: tag devfs, type VDIR > usecount 0, writecount 0, refcount 1 mountedhere 0xffffff0003745ca0 > flags (VV_ROOT) > lock type devfs: EXCL (count 1) by thread 0xffffff00010e6680 (pid 1) > > Also, this time I triggered it after having dropped a drive (as opposed to > when I then booted back up again with two drives). > > Am I understanding this correctly that the root filesystem has suddenly become > devfs? > The VV_ROOT flag means that this particular vnode is the root of a file system, not that it is *the* root necessarily. Eric