From owner-freebsd-fs@FreeBSD.ORG Sat May 8 20:43:16 2004 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A736516A4CE for ; Sat, 8 May 2004 20:43:16 -0700 (PDT) Received: from mta7.pltn13.pbi.net (mta7.pltn13.pbi.net [64.164.98.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4FE9643D64 for ; Sat, 8 May 2004 20:43:16 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (bea66837f5e10e47abdb7c93a2f914de@adsl-67-115-73-128.dsl.lsan03.pacbell.net [67.115.73.128]) by mta7.pltn13.pbi.net (8.12.10/8.12.10) with ESMTP id i493hFNk021039 for ; Sat, 8 May 2004 20:43:15 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 4913A53549; Sat, 8 May 2004 19:51:15 -0700 (PDT) Date: Sat, 8 May 2004 19:51:15 -0700 From: Kris Kennaway To: fs@FreeBSD.org Message-ID: <20040509025115.GA79812@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RnlQjJ0d97Da+TV1" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: NFS deadlock X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 May 2004 03:43:16 -0000 --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I just ran into this on bento: one of the NFS servers was not responding, so I tried to unmount it. The unmount stuck in state nfsfsync, and eventually everything else on the system got stuck in state ufs. Kris db> show lockedvnods Locked vnodes 0xc6010e38: tag ufs, type VDIR, usecount 239, writecount 0, refcount 1, flags (VV_ROOT|VV_OBJBUF), lock type ufs: EXCL (count 1) by thread 0xc77b2690 (pid 64855) with 12 pending ino 2, on dev da0s1a (4, 27) 0xc60bc618: tag ufs, type VDIR, usecount 3, writecount 0, refcount 1, flags (VV_OBJBUF), lock type ufs: EXCL (count 1) by thread 0xc89983f0 (pid 62988) with 1 pending ino 47731, on dev da0s1a (4, 27) 0xc60bc514: tag ufs, type VDIR, usecount 3, writecount 0, refcount 0, flags (VV_OBJBUF), lock type ufs: EXCL (count 1) by thread 0xc73ad540 (pid 61015) with 1 pending ino 47733, on dev da0s1a (4, 27) 0xc68f9b2c: tag nfs, type VREG, usecount 0, writecount 0, refcount 1, flags (VI_XLOCK|VI_BWAIT|VV_OBJBUF), lock type nfs: EXCL (count 1) by thread 0xc712c690 (pid 60978) fileid 1080273 fsid 0x400ff02 db> trace 60978 sched_switch(c712c690,2,c06ab58e,13c,ea95e7d5) at sched_switch+0xf5 mi_switch(1,0,c06ad8f3,16e,c712c690) at mi_switch+0x298 sleepq_switch(c68f9b58,178,4d000001,1,1) at sleepq_switch+0x149 sleepq_wait_sig(c68f9b58,0,c06ab58e,f6,0) at sleepq_wait_sig+0x14 msleep(c68f9b58,c68f9b2c,14d,c06b67cc,0) at msleep+0x4de nfs_flush(c68f9b2c,0,1,c712c690,1) at nfs_flush+0x961 nfs_fsync(e3ebdad4,0,c06b2d53,393,e3ebdad0) at nfs_fsync+0x31 vinvalbuf(c68f9b2c,1,0,c712c690,0) at vinvalbuf+0xff vclean(c68f9b2c,8,c712c690,e3ebdb94,c0571b48) at vclean+0xad vgonel(c68f9b2c,c712c690,c06b2d53,8a4,c5de6444) at vgonel+0x61 vflush(c5de6400,1,0,0,8000000) at vflush+0x32d nfs_unmount(c5de6400,8000000,c712c690,c712c690,0) at nfs_unmount+0x50 dounmount(c5de6400,8000000,c712c690,41e,400ff02) at dounmount+0x224 unmount(c712c690,e3ebdd14,c06c1efb,3e2,2) at unmount+0x24c syscall(2f,2f,2f,804a9f2,804de04) at syscall+0x2a0 Xint0x80_syscall() at Xint0x80_syscall+0x1d --- syscall (22, FreeBSD ELF32, unmount), eip = 0x280c1a5f, esp = 0xbfbfe00c, ebp = 0xbfbfe0c8 --- --RnlQjJ0d97Da+TV1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAnZyiWry0BWjoQKURAlfiAJ4qO7gNDxu1isKtZgJziFNYAtNSCwCdForJ tpoujpePaD2dMPfCRk42ilM= =xgLb -----END PGP SIGNATURE----- --RnlQjJ0d97Da+TV1--