NetBSD Problem Report #8209

Received: (qmail 11941 invoked from network); 15 Aug 1999 14:09:53 -0000
Message-Id: <199908151409.KAA00425@wheel.tiac.net>
Date: Sun, 15 Aug 1999 10:09:51 -0400 (EDT)
From: Gary Duzan <gary@wheel.tiac.net>
Reply-To: gary@wheel.tiac.net
To: gnats-bugs@gnats.netbsd.org
Subject: Reboot fails with union mounts
X-Send-Pr-Version: 3.95

>Number:         8209
>Category:       kern
>Synopsis:       Reboot fails with union mounts
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 15 07:20:00 +0000 1999
>Closed-Date:    Mon Sep 17 13:17:19 +0000 2001
>Last-Modified:  Mon Sep 17 13:17:19 +0000 2001
>Originator:     Gary Duzan
>Release:        Sat Aug 14, 1999 current
>Organization:
	Not a whole lot
>Environment:
System: NetBSD wheel 1.4J NetBSD 1.4J (WHEEL) #0: Sat Aug 14 21:21:47 EDT 1999 gary@wheel:/disk1/src/sys/arch/i386/compile/WHEEL i386


>Description:
	Since moving to a 1.4J kernel I have been unable to reboot
	with union mounts in place. The process gets to "syncing disks...
	4 4 done", then hangs. Popping into ddb shows only reboot and
	the kernel threads running, and reboot has the following trace:

		bpendsleep
		bpendsleep
		vfs_busy
		getnewvnode
		union_allocvp
		union_root
		union_unmount
		dounmount
		vfs_unmountall
		vfs_shutdown
		cpu_reboot
		sys_reboot
		syscall

	The problem appears to be that dounmount() sets the MNT_UNMOUNT
	flag and vfs_busy() waits for it to be unset, leaving it to spin
	forever. Normal union unmounts work normally, though.
>How-To-Repeat:
	Set up file systems like this:

/dev/ccd0a /disk1 lfs rw 0 2
/usr/src /disk1/src union rw,-b
/usr/pkgsrc /disk1/pkgsrc union rw,-b
/usr/xsrc /disk1/xsrc union rw,-b

	and try to reboot.
>Fix:
	I would if I could, but I can't, so I won't.
	Please forgive me if I don't.
	I want the simple fact understood:
	I would if I could, yes I would, but I can't, so I won't.

				      -- The Electric Company
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: chs 
State-Changed-When: Mon Sep 17 06:16:18 PDT 2001 
State-Changed-Why:  
works for me, submitter's email address is no longer valid. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.