From owner-freebsd-current@FreeBSD.ORG Tue May 8 19:45:25 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 48A921065675 for ; Tue, 8 May 2012 19:45:25 +0000 (UTC) (envelope-from pho@holm.cc) Received: from relay02.pair.com (relay02.pair.com [209.68.5.16]) by mx1.freebsd.org (Postfix) with SMTP id D83A98FC18 for ; Tue, 8 May 2012 19:45:24 +0000 (UTC) Received: (qmail 72609 invoked from network); 8 May 2012 19:42:11 -0000 Received: from 87.58.144.241 (HELO x2.osted.lan) (87.58.144.241) by relay02.pair.com with SMTP; 8 May 2012 19:42:11 -0000 X-pair-Authenticated: 87.58.144.241 Received: from x2.osted.lan (localhost [127.0.0.1]) by x2.osted.lan (8.14.5/8.14.5) with ESMTP id q48JjEjX011484; Tue, 8 May 2012 21:45:14 +0200 (CEST) (envelope-from pho@x2.osted.lan) Received: (from pho@localhost) by x2.osted.lan (8.14.5/8.14.5/Submit) id q48JjE1Z011483; Tue, 8 May 2012 21:45:14 +0200 (CEST) (envelope-from pho) Date: Tue, 8 May 2012 21:45:14 +0200 From: Peter Holm To: Mateusz Guzik Message-ID: <20120508194514.GA10688@x2.osted.lan> References: <4FA6F324.4080107@FreeBSD.org> <4FA82269.6080406@FreeBSD.org> <20120507201153.GA19942@dft-labs.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120507201153.GA19942@dft-labs.eu> User-Agent: Mutt/1.4.2.3i Cc: Doug Barton , Sergey Kandaurov , freebsd-current , mckusick@freebsd.org Subject: Re: panic, seems related to r234386 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: Tue, 08 May 2012 19:45:25 -0000 On Mon, May 07, 2012 at 10:11:53PM +0200, Mateusz Guzik wrote: > On Mon, May 07, 2012 at 12:28:41PM -0700, Doug Barton wrote: > > On 05/06/2012 15:19, Sergey Kandaurov wrote: > > > On 7 May 2012 01:54, Doug Barton wrote: > > >> I got this with today's current, previous (working) kernel is r232719. > > >> > > >> panic: _mtx_lock_sleep: recursed on non-recursive mutex struct mount mtx > > >> @ /frontier/svn/head/sys/kern/vfs_subr.c:4595 > > > > ... > > > > > Please try this patch. > > > > > > Index: fs/ext2fs/ext2_vfsops.c > > > =================================================================== > > > --- fs/ext2fs/ext2_vfsops.c (revision 235108) > > > +++ fs/ext2fs/ext2_vfsops.c (working copy) > > > @@ -830,7 +830,6 @@ > > > /* > > > * Write back each (modified) inode. > > > */ > > > - MNT_ILOCK(mp); > > > loop: > > > MNT_VNODE_FOREACH_ALL(vp, mp, mvp) { > > > if (vp->v_type == VNON) { > > > > > > > Didn't help, sorry. I put 234385 through some pretty heavy load > > yesterday, and everything was fine. As soon as I move up to 234386, the > > panic triggered again. So I cleaned everything up, applied your patch, > > built a kernel from scratch, and rebooted. It was Ok for a few seconds > > after boot, then panic'ed again, I think in a different place, but I'm > > not sure because subsequent attempts to fsck the file systems caused new > > panics which overwrote the old ones before they could be saved. > > > > Another MNT_ILOCK was hiding few lines below, try this patch: > > http://student.agh.edu.pl/~mjguzik/patches/ext2fs-ilock.patch > > I've tested this a bit and I believe this fixes your problem. > Gave this a spin and found what looks like a deadlock: http://people.freebsd.org/~pho/stress/log/ext2fs.txt Not a new problem, it would seem. Same issue with 8.3-PRERELEASE r232656M. - Peter