Subject: kern/10285: panic: lfs_vunref: vnode locked
To: None <gnats-bugs@gnats.netbsd.org>
From: IWAMOTO Toshihiro <iwamoto@sat.t.u-tokyo.ac.jp>
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
>Closed-Date:
>Last-Modified:
>Originator:     IWAMOTO Toshihiro
>Release:        2 days ago -current
>Organization:
	
>Environment:
	
System: NetBSD kiku.my.domain 1.4Z NetBSD 1.4Z (KIKU) #23: Sun Jun 4 23:56:58 JST 2000 toshii@kiku.my.domain:/usr/src/syssrc/sys/arch/i386/compile/KIKU i386


>Description:
	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
cpu_Debugger()
panic()
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
vclean+0x99
vgonel+0x3b
getnewvnode+0x1b5
lfs_vcreate+0x1e
lfs_vget+0xfc
ufs_lookup+0xc0a
lookup+0x257
namei+0x30f
sys___lstat13

	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.

>How-To-Repeat:
	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://rsync.jp.netbsd.org/anoncvs/main/syssrc NetBSD-CVS/ > rsync-sys.log &
	$ rsync -v -z --delete -r rsync://rsync.jp.netbsd.org/anoncvs/main/basesrc NetBSD-CVS/ > rsync-base.log 

>Fix:
	No idea. Is this related to recent changes in /sys/ufs/lfs?
>Release-Note:
>Audit-Trail:
>Unformatted: