Subject: Re: amd64 machine can't reboot
To: None <current-users@NetBSD.org>
From: David Young <dyoung@pobox.com>
List: current-users
Date: 12/10/2007 15:21:35
--d01dLTUuW90fS44H
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Mon, Dec 10, 2007 at 02:49:12PM +0100, Kurt Schreiner wrote:
> Hi,
> 
> after installing a current kernel (ca. 1 hour old) the machine
> only boots to multiuser when I disable nfsd (?!) and trying to
> reboot the beast I get the following:
> The system seem to hang in "unmounting file systems...", so
> I broke to db and typed "reboot".
> The "Devices without power..." is spit out and then nothing
> happens for a minute or two until the rest shows up...
> What's on with this? A kernel from last Friday works flawlessly
> on this machine...

FWIW, my machines running 4.99.37 hang at 'unmounting file systems...'
if I apply my workaround for nullfs leaking vnodes.  Apart from being a
potential performance-killer, I believed that my workaround (attached)
was rather innocuous.  Maybe there is something else going on?

Dave

-- 
David Young             OJC Technologies
dyoung@ojctech.com      Urbana, IL * (217) 278-3933 ext 24

--d01dLTUuW90fS44H
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="layerfs.patch"

Index: genfs/layer_vnops.c
===================================================================
RCS file: /cvsroot/src/sys/miscfs/genfs/layer_vnops.c,v
retrieving revision 1.32
diff -p -u -u -p -r1.32 layer_vnops.c
--- genfs/layer_vnops.c	10 Oct 2007 20:42:29 -0000	1.32
+++ genfs/layer_vnops.c	10 Dec 2007 21:20:56 -0000
@@ -760,9 +762,7 @@ layer_inactive(v)
 	 * ..., but don't cache the device node. Also, if we did a
 	 * remove, don't cache the node.
 	 */
-	if (vp->v_type == VBLK || vp->v_type == VCHR
-	    || (VTOLAYER(vp)->layer_flags & LAYERFS_REMOVED))
-		vgone(vp);
+	vgone(vp);
 	return (0);
 }
 

--d01dLTUuW90fS44H--