Subject: kern/11583: UBC and softdep can't unmount fs on shutdown
To: None <gnats-bugs@gnats.netbsd.org>
From: Martin Husemann <martin@duskware.de>
List: netbsd-bugs
Date: 11/28/2000 10:58:11
>Number:         11583
>Category:       kern
>Synopsis:       UBC and softdep can't unmount fs on shutdown
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 28 10:58:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Martin Husemann
>Release:        1.5L (cvs updated minutes after the renaming to 1.5L)
>Organization:
	
>Environment:
	
System: NetBSD night-porter.duskware.de 1.5L NetBSD 1.5L (PORTER) #0: Mon Nov 27 15:02:02 MET 2000 martin@night-porter.duskware.de:/usr/src/sys-i4b/arch/i386/compile/PORTER i386
Architecture: i386
Machine: i386
>Description:

With this fs mounted

/dev/wd0a on / type ffs (NFS exported, local, soft dependencies)
/dev/wd0e on /usr type ffs (NFS exported, local, soft dependencies)
kernfs on /kern type kernfs (local)
procfs on /proc type procfs (local)
mfs:83 on /tmp type mfs (asynchronous, local, nodev, nosuid)

the kernel fails to unmount the fs when doing "shutdown -r now".
It says something like

syncing disks 5 5 5 5 5 5 5 5 5 2 2 2 2 2 giving up

and the filesystems on / and /usr are not marked clean.

Removing the "softdep" from the mount fixes this.

Doing a "shutdown now" and then, after login in as root on the console in
single user mode doing imediately "reboot" works (i.e. unmounts the file
systems after a shorter sequences like "syncing disks 1 1 1 1 1 1\nrebooting")

>How-To-Repeat:

Mount a ffs with softdeps on root and use UBC, do "shutdown -r now".

>Fix:
n/a
>Release-Note:
>Audit-Trail:
>Unformatted: