Subject: kern/10285: panic: lfs_vunref: vnode locked
To: None <>
From: IWAMOTO Toshihiro <>
List: netbsd-bugs
Date: 06/05/2000 08:41:12
>Number:         10285
>Category:       kern
>Synopsis:       panic: lfs_vunref: vnode locked
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 05 08:42:01 PDT 2000
>Originator:     IWAMOTO Toshihiro
>Release:        2 days ago -current
System: NetBSD 1.4Z NetBSD 1.4Z (KIKU) #23: Sun Jun 4 23:56:58 JST 2000 i386

	During heavy disk activity, the kernel sometimes panics.
	I couldn't get a crash dump for this time. The below is a ten-finger
	copy of the stack trace.

panic: lfs_vunref: vnode locked
Stopped in rsync at	cpu_Debugger+0x4: ...
db> tr
lfs_vunref() at lfs_vunref+0x8d
lfs_writevnodes(c062cc00, c99406b4, c06446c0, 2) at lfs_writevnodes+0x1f6
lfs_vflush(c9911360, c9911360, 8, c9911360, c991bba8) at lfs_vflush+0x265
lfs_update(c991bbbc, c02ec560, c9911360, 0, 0) at lfs_update+0x1bb
lfs_fsync(c991bbf4, c9911360, 8, 0, 1) at lfs_fsync+0x3f
vinvalbuf(c9911360, 1, ffffffff, c98f6af8, 0, 0) at vinvalbuf+0x4a

	I can give omitted values if necessary, as I took a screen shot
	of this trace with a digital camera. :-)
	I also have a crash dump from an about 5 days ago kernel.

	Run several rsync processes parallel in a LFS directory.
	"syssrc" and "basesrc" directories have ~200MB each and the rsync
	processes were over a slow link (64k ISDN), if it matters.
	This activity does not always lead to a panic, it is more likely
	that the rsync processes successfully finish without a panic.

	$ cd <lfs-directory>
	$ rsync -v -z --delete -r rsync:// NetBSD-CVS/ > rsync-sys.log &
	$ rsync -v -z --delete -r rsync:// NetBSD-CVS/ > rsync-base.log 

	No idea. Is this related to recent changes in /sys/ufs/lfs?