Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 May 1998 18:15:46 +0200
From:      Tor Egge <Tor.Egge@idi.ntnu.no>
To:        toasty@home.dragondata.com
Cc:        current@FreeBSD.ORG
Subject:   Re: SMP related panic on reboot
Message-ID:  <199805141615.SAA21189@pat.idi.ntnu.no>
In-Reply-To: Your message of "Wed, 13 May 1998 23:57:28 -0500 (CDT)"
References:  <199805140457.XAA14634@home.dragondata.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805141615.SAA21189>