Date: Tue, 19 May 1998 10:43:27 -0500 (CDT) From: Kevin Day <toasty@home.dragondata.com> To: Tor.Egge@idi.ntnu.no (Tor Egge) Cc: current@FreeBSD.ORG Subject: Re: SMP related panic on reboot Message-ID: <199805191543.KAA00412@home.dragondata.com> In-Reply-To: <199805141615.SAA21189@pat.idi.ntnu.no> from Tor Egge at "May 14, 98 06:15:46 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
This patch appears to work - can anyone else test it? Kevin > > > > 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?199805191543.KAA00412>