From owner-freebsd-current Sat Mar 29 10:36:59 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id KAA06027 for current-outgoing; Sat, 29 Mar 1997 10:36:59 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.50]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id KAA06021 for ; Sat, 29 Mar 1997 10:36:54 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id LAA06605; Sat, 29 Mar 1997 11:21:25 -0700 From: Terry Lambert Message-Id: <199703291821.LAA06605@phaeton.artisoft.com> Subject: Re: Panic: "lockmgr: pid %d, not %s %d unlocking" To: dfr@nlsystems.com (Doug Rabson) Date: Sat, 29 Mar 1997 11:21:25 -0700 (MST) Cc: jdp@polstra.com, current@freebsd.org In-Reply-To: from "Doug Rabson" at Mar 29, 97 09:15:36 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > I just got this panic on a -current kernel from March 17th, running > > on a 486/66DX2 with 16 MB of RAM: > > > > #9 0xf01181fa in panic (fmt=0xf0112e4b "lockmgr: pid %d, not %s %d unlocking") > > at ../../kern/kern_shutdown.c:366 > > #10 0xf01132d8 in lockmgr (lkp=0xf0bc3e34, flags=6, interlkp=0xf0ba5b60, > > p=0xf0bf1800) at ../../kern/kern_lock.c:355 > > #11 0xf01af9c3 in ufs_unlock (ap=0xefbffd50) at ../../ufs/ufs/ufs_vnops.c:1784 > > #12 0xf0165b35 in nfs_inactive (ap=0xefbffd78) at vnode_if.h:843 > > This looks as if the vnode was recycled unexpectedly from > NFS to UFS during the call to vm_object_deallocate. Unfortunately I can't > see any obvious way this can happen since the vm_object has a ref to the > vnode and it doesn't look like vm_object_deallocate can get re-entered > easily. Actually, it looks like lockmgr() is not reeentrancy locking the global structures (something which is necessary if the lock management is done on a calldown rather than a veto basis). Regards, Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.