Subject: kern/24443: buf_drain deadlock
To: None <gnats-bugs@gnats.netbsd.org>
From: None <yamt@mwd.biglobe.ne.jp>
List: netbsd-bugs
Date: 02/16/2004 18:51:13
>Number:         24443
>Category:       kern
>Synopsis:       buf_drain deadlock
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 16 09:52:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
>Release:        NetBSD 1.6ZK
>Organization:

>Environment:
	
	
System: NetBSD kaeru 1.6ZK NetBSD 1.6ZK (build.kaeru) #995: Mon Feb 16 18:19:46 JST 2004 takashi@kaeru:/home/takashi/work/kernel/build.kaeru i386
Architecture: i386
Machine: i386
>Description:
	see the following backtrace.

pagedaemon: deadlock detected!
panic: pagedaemon deadlock
cpu_Debugger(c96aac98,c02b80e6,c96aac8c,a,c04ab6be,c1bb4000,c96aacac) at netbsd:cpu_Debugger+0x9
panic(c04ac605,c034c89a,c96aacac,c034c89a,0,1000,c96aad3c) at netbsd:panic+0x125
uvm_wait(c04ab6be,0,0,0,0,1,43b4) at netbsd:uvm_wait+0xcb
uvm_km_kmemalloc1(c0823300,0,4000,0,ffffffff,ffffffff,0) at netbsd:uvm_km_kmemalloc1+0x738
malloc(4000,c0808560,0,cb5cf294,fa7e3f,0,c1bad000) at netbsd:malloc+0x1a1
softdep_disk_io_initiation(c1a4e1bc,c02ef8aa,c96aadfc,c02ef8aa,c96aadfc,0,ffffffff) at netbsd:softdep_disk_io_initiation+0xf7
spec_strategy(c96aae14,1,2,a62c,c045ef60,c96a00e4,c1a4e1bc) at netbsd:spec_strategy+0x1e7
VOP_STRATEGY(c96a00e4,c1a4e1bc,c96aae5c,c02707f6,c1b45fd8,cb5c63c4,cac08ecc) at netbsd:VOP_STRATEGY+0x2d
ufs_strategy(c96aae74,c029afda,c96aae8c,c029afda,c045ef60,cac08ecc,c1a4e1bc) at netbsd:ufs_strategy+0x75
VOP_STRATEGY(cac08ecc,c1a4e1bc,2a1,cac08ecc,c1a4e1c4,0,c969e394) at netbsd:VOP_STRATEGY+0x2d
bwrite(c1a4e1bc,0,c04f02c0,c1a4e1c4,c045e720,c1a4e1bc,c96aaf0c) at netbsd:bwrite+0x149
VOP_BWRITE(c1a4e1bc,c04f02c0,499,20091,c0825bb0,c04eeb40,c04f02c0) at netbsd:VOP_BWRITE+0x2a
getnewbuf(100,1,1,8001213,c080bc68,0,c96aaf5c) at netbsd:getnewbuf+0x1a8
buf_trim(40308f8b,bfe90,c04f79c0,0,720,c04ac630,c96aaf8c) at netbsd:buf_trim+0x1c
buf_drain(0,c04f79c0,e2,270,120,0,16efc) at netbsd:buf_drain+0xa9
uvm_pageout(c967d528,8e1000,8ea000,0,c010030c,0,0) at netbsd:uvm_pageout+0x4ef
>How-To-Repeat:
	run with softupdate.
>Fix:
	don't let pagedaemon flush buffers?

>Release-Note:
>Audit-Trail:
>Unformatted: