From owner-freebsd-current@FreeBSD.ORG Sun Jun 12 21:59:06 2005 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 362C416A41C for ; Sun, 12 Jun 2005 21:59:06 +0000 (GMT) (envelope-from ssouhlal@FreeBSD.org) Received: from efnet-math.org (efnet-math.org [69.60.109.125]) by mx1.FreeBSD.org (Postfix) with ESMTP id D1DEC43D53 for ; Sun, 12 Jun 2005 21:59:05 +0000 (GMT) (envelope-from ssouhlal@FreeBSD.org) Received: from [192.168.1.12] (63-170-138-118.cst-sg.blacksburg.ntc-com.net [63.170.138.118]) (authenticated bits=0) by efnet-math.org (8.13.1/8.13.1) with ESMTP id j5CLx3AD006544 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO); Sun, 12 Jun 2005 17:59:04 -0400 In-Reply-To: <7mhdg4q983.wl%kuriyama@imgsrc.co.jp> References: <7mhdg4q983.wl%kuriyama@imgsrc.co.jp> Mime-Version: 1.0 (Apple Message framework v730) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Suleiman Souhlal Date: Sun, 12 Jun 2005 17:58:57 -0400 To: Jun Kuriyama X-Mailer: Apple Mail (2.730) Cc: Current Subject: Re: Acquiring lockmgr lock "ufs" with non-sleepable locks X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jun 2005 21:59:06 -0000 Hi, On Jun 12, 2005, at 4:18 AM, Jun Kuriyama wrote: > > As of today's current: > > Acquiring lockmgr lock "ufs" with the following non-sleepable locks > held: > exclusive sleep mutex vnode pollinfo r = 0 (0xc4814000) locked @ / > usr/src/sys/kern/kern_event.c:881 > KDB: stack backtrace: > kdb_backtrace(1,3001,c3fa229c,c3a36780,ecf71a5c) at kdb_backtrace+0x29 > witness_warn(5,c070c378,c06a435b,c06ad03d) at witness_warn+0x18e > lockmgr(c3fa2278,3001,c3fa229c,c3a36780,ecf71a88) at lockmgr+0x8d > vop_stdlock(ecf71acc,c06f58c0,ecf71acc,ecf71a98,c0612184) at > vop_stdlock+0x1e > VOP_LOCK_APV(c06f5e00,ecf71acc,ecf71aac,c067caff,ecf71acc) at > VOP_LOCK_APV+0x87 > ffs_lock(ecf71acc,1001,c3fa2220,ecf71ae8,c0566634) at ffs_lock+0x10 > VOP_LOCK_APV(c06f58c0,ecf71acc) at VOP_LOCK_APV+0x87 > vn_lock(c3fa2220,1001,c3a36780) at vn_lock+0xa4 > filt_vfsread(c3ac9264,0,0,ffffffff,0) at filt_vfsread+0x3a > kqueue_register(c3dd6480,ecf71bf4,c3a36780,1,0) at kqueue_register > +0x668 > kern_kevent(c3a36780,4,1,0,ecf71cc8) at kern_kevent+0xc9 > kevent(c3a36780,ecf71d04,6,1,292) at kevent+0x55 > syscall(3b,3b,3b,1,804e068) at syscall+0x22f > Xint0x80_syscall() at Xint0x80_syscall+0x1f > --- syscall (363, FreeBSD ELF32, kevent), eip = 0x280b9503, esp = > 0xbfbfe8ec, ebp = 0xbfbfe938 --- This was introduced by my commit to take out the various kqueue operations outside of ufs. It is because we are trying to lock the vnode while holding the knlist mutex. I'll work on a fix on wednesday, as I'll unfortunately be a bit busy until then. I hope this won't cause you any inconvenience. Bye. -- Suleiman Souhlal | ssouhlal@vt.edu The FreeBSD Project | ssouhlal@FreeBSD.org