Subject: kern/18975: lfs_bmapv + dounmount deadlock
To: None <>
From: None <>
List: netbsd-bugs
Date: 11/09/2002 01:53:13
>Number:         18975
>Category:       kern
>Synopsis:       lfs_bmapv + dounmount deadlock
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 08 08:55:05 PST 2002
>Originator:     YAMAMOTO Takashi <>
>Release:        NetBSD 1.6K

System: NetBSD kaeru 1.6K NetBSD 1.6K (build.kaeru) #170: Sat Nov 9 00:41:22 JST 2002 takashi@kaeru:/usr/home/takashi/work/kernel/build.kaeru i386
Architecture: i386
Machine: i386
	1. cleaner thread calls lfs_bmapv. it calls vfs_busy.
	2. another thread set MNT_UNMOUNT in dounmount.
	3. cleaner thread wakes up and vfs_busy again in getnewvnode.
	4. => deadlock
	try to unmount a lfs partition when cleaner is active.