Date: Fri, 02 Feb 2001 16:03:26 +0000 From: Ian Dowse <iedowse@maths.tcd.ie> To: Chris Williams <Chris.Williams@third-rail.net> Cc: "'freebsd-hackers@freebsd.org'" <freebsd-hackers@freebsd.org>, "'freebsd-stable@freebsd.org'" <freebsd-stable@freebsd.org>, iedowse@maths.tcd.ie Subject: Re: Have root on vinum, one small problem.. Message-ID: <200102021603.aa24556@salmon.maths.tcd.ie> In-Reply-To: Your message of "Fri, 02 Feb 2001 10:54:51 EST." <4FC7AFEB1135D41199260000F87A88260D9530@TRSBS>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <4FC7AFEB1135D41199260000F87A88260D9530@TRSBS>, Chris Williams write s: > >Things seems to be working quite well, but there is one strange behavior which > worries me; whenever I shut down, right after syncing I get a panic: > >panic: Vrele: negative ref cnt I noticed this a while ago - it is due to inconsistent handling of 'rootvnode' in the kernel. You should find the details if you search for 'rootvnode' in the -hackers archive. The following patch should work around the panic by adding an extra vnode reference for rootvp: Ian Index: init_main.c =================================================================== RCS file: /FreeBSD/FreeBSD-CVS/src/sys/kern/init_main.c,v retrieving revision 1.134.2.3 diff -u -r1.134.2.3 init_main.c --- init_main.c 2000/09/07 19:13:36 1.134.2.3 +++ init_main.c 2001/02/02 16:01:52 @@ -456,6 +456,7 @@ VREF(fdp->fd_fd.fd_cdir); VOP_UNLOCK(rootvnode, 0, &proc0); fdp->fd_fd.fd_rdir = rootvnode; + VREF(fdp->fd_fd.fd_rdir); } SYSINIT(retrofit, SI_SUB_ROOT_FDTAB, SI_ORDER_FIRST, xxx_vfs_root_fdtab, NULL) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi? <200102021603.aa24556>