From owner-freebsd-current@FreeBSD.ORG Mon Aug 16 17:07:26 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6BFC710656A9 for ; Mon, 16 Aug 2010 17:07:26 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 1E22C8FC1F for ; Mon, 16 Aug 2010 17:07:25 +0000 (UTC) Received: by qwg5 with SMTP id 5so5948503qwg.13 for ; Mon, 16 Aug 2010 10:07:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=jzSgsKoSE0qf8NUNpV16afTzDW8sR6Z2S+mSsAOyAnk=; b=Yyql6uQvUtO9slOXXRntWUvw4BpUFzXdkxJ3tKI66NPy4QV31m5++RjpN9sF6+ZDHv O6QDibc1q1/i6XnjWrjLAD7TEtMde8N8smYLg5UoR5o/jXxg/v0Kpt34veokmBO+vBSt TTsC45bCoVQzIS/MG0tATYEqu17t023zUVEfo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=Gyd5vyqH3u86wi8xBPwXFQCaxV20TFu7hSP+7JR2p9Dsmaz6KJD3tieJmvOMlQUUjs qSB3Cjbxyn5Kq7TZvfZZ0bZAYtl6qK15wx6FpaaOp6XHWEFgOCsjktYuMKqejttdolfb Q0UhanJkCt43bvuad8CXk4+AuXo9FvA1A/Rlw= MIME-Version: 1.0 Received: by 10.224.123.146 with SMTP id p18mr3521505qar.4.1281978444982; Mon, 16 Aug 2010 10:07:24 -0700 (PDT) Received: by 10.229.31.12 with HTTP; Mon, 16 Aug 2010 10:07:24 -0700 (PDT) In-Reply-To: References: Date: Mon, 16 Aug 2010 21:07:24 +0400 Message-ID: From: pluknet To: FreeBSD Current Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: LOR on nfs: vfs_vnops.c:301 kern_descrip.c:1580 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: Mon, 16 Aug 2010 17:07:26 -0000 On 16 August 2010 21:05, pluknet wrote: > Hi. > > Seeing on mostly idle, recently updated current, while closing a file. > Presumably never reported on ML. > > lock order reversal: > =A01st 0xffffff00198199f8 nfs (nfs) @ /usr/src/sys/kern/vfs_vnops.c:301 > =A02nd 0xffffff000234a048 filedesc structure (filedesc structure) @ > /usr/src/sys/kern/kern_descrip.c:1580 > KDB: stack backtrace: > db_trace_self_wrapper() at db_trace_self_wrapper+0x2a > _witness_debugger() at _witness_debugger+0x2e > witness_checkorder() at witness_checkorder+0x807 > _sx_xlock() at _sx_xlock+0x55 > fdinit() at fdinit+0x5b > fdcopy() at fdcopy+0x2a > fork1() at fork1+0x836 > kproc_create() at kproc_create+0x63 > nfs_nfsiodnew() at nfs_nfsiodnew+0xd7 > nfs_asyncio() at nfs_asyncio+0xa6 > nfs_strategy() at nfs_strategy+0x83 > bufstrategy() at bufstrategy+0x43 > nfs_writebp() at nfs_writebp+0xcf > nfs_flush() at nfs_flush+0x1dc > nfs_close() at nfs_close+0x213 > vn_close() at vn_close+0x10e > vn_closefile() at vn_closefile+0x5a > _fdrop() at _fdrop+0x23 > closef() at closef+0x5b > kern_close() at kern_close+0x110 > syscallenter() at syscallenter+0x1aa > syscall() at syscall+0x4c > Xfast_syscall() at Xfast_syscall+0xe2 > --- syscall (6, FreeBSD ELF64, close), rip =3D 0x80089830c, rsp =3D > 0x7fffffffea88, rbp =3D 0 --- > > Mostly the same (different 2nd lock path). lock order reversal: 1st 0xffffff00198199f8 nfs (nfs) @ /usr/src/sys/kern/vfs_vnops.c:301 2nd 0xffffffff80ca47e0 proctree (proctree) @ /usr/src/sys/kern/kern_fork.c= :335 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a _witness_debugger() at _witness_debugger+0x2e witness_checkorder() at witness_checkorder+0x807 _sx_slock() at _sx_slock+0x55 fork1() at fork1+0x190 kproc_create() at kproc_create+0x63 nfs_nfsiodnew() at nfs_nfsiodnew+0xd7 nfs_asyncio() at nfs_asyncio+0xa6 nfs_strategy() at nfs_strategy+0x83 bufstrategy() at bufstrategy+0x43 nfs_writebp() at nfs_writebp+0xcf nfs_flush() at nfs_flush+0x1dc nfs_close() at nfs_close+0x213 vn_close() at vn_close+0x10e vn_closefile() at vn_closefile+0x5a _fdrop() at _fdrop+0x23 closef() at closef+0x5b kern_close() at kern_close+0x110 syscallenter() at syscallenter+0x1aa syscall() at syscall+0x4c Xfast_syscall() at Xfast_syscall+0xe2 --- syscall (6, FreeBSD ELF64, close), rip =3D 0x80089830c, rsp =3D 0x7fffffffea88, rbp =3D 0 --- --=20 wbr, pluknet