From owner-freebsd-current Thu May 14 09:16:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA27202 for freebsd-current-outgoing; Thu, 14 May 1998 09:16:08 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from pat.idi.ntnu.no (0@pat.idi.ntnu.no [129.241.103.5]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA27164 for ; Thu, 14 May 1998 09:16:04 -0700 (PDT) (envelope-from Tor.Egge@idi.ntnu.no) Received: from idi.ntnu.no (tegge@presis.idi.ntnu.no [129.241.111.173]) by pat.idi.ntnu.no (8.8.8/8.8.8) with ESMTP id SAA21189; Thu, 14 May 1998 18:15:47 +0200 (MET DST) Message-Id: <199805141615.SAA21189@pat.idi.ntnu.no> To: toasty@home.dragondata.com Cc: current@FreeBSD.ORG Subject: Re: SMP related panic on reboot In-Reply-To: Your message of "Wed, 13 May 1998 23:57:28 -0500 (CDT)" References: <199805140457.XAA14634@home.dragondata.com> X-Mailer: Mew version 1.70 on Emacs 19.34.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 14 May 1998 18:15:46 +0200 From: Tor Egge Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > I booted a machine, realized I had forgotten something, and rebooted it > instantly after it was done booting.. It panic'ed during the reboot. This is > a kernel from ~Feb 25th. > > Any questions/ideas? > > > boot() called on cpu#0 > > syncing disks... 3 3 3 1 done > panic: lockmgr: pid 195, not exclusive lock holder 1 unlocking The following patch might help. Index: vfs_subr.c =================================================================== RCS file: /home/ncvs/src/sys/kern/vfs_subr.c,v retrieving revision 1.152 diff -u -r1.152 vfs_subr.c --- vfs_subr.c 1998/04/19 23:32:03 1.152 +++ vfs_subr.c 1998/04/24 23:42:45 @@ -2149,9 +2159,13 @@ vfs_unmountall() { struct mount *mp, *nmp; - struct proc *p = initproc; /* XXX XXX should this be proc0? */ + struct proc *p; int error; + if (curproc) + p = curproc; + else + p = initproc; /* XXX XXX should this be proc0? */ /* * Since this only runs when rebooting, it is not interlocked. */ - Tor Egge To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message