From owner-freebsd-current@FreeBSD.ORG Thu Oct 27 06:09:20 2005 Return-Path: X-Original-To: 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 1E7B516A426 for ; Thu, 27 Oct 2005 06:09:20 +0000 (GMT) (envelope-from pho@holm.cc) Received: from relay.pair.com (relay00.pair.com [209.68.5.9]) by mx1.FreeBSD.org (Postfix) with SMTP id 2304543D48 for ; Thu, 27 Oct 2005 06:09:18 +0000 (GMT) (envelope-from pho@holm.cc) Received: (qmail 31032 invoked from network); 27 Oct 2005 06:09:17 -0000 Received: from unknown (HELO peter.osted.lan) (unknown) by unknown with SMTP; 27 Oct 2005 06:09:17 -0000 X-pair-Authenticated: 80.161.118.233 Received: from peter.osted.lan (localhost.osted.lan [127.0.0.1]) by peter.osted.lan (8.13.1/8.13.1) with ESMTP id j9R69HrE055666; Thu, 27 Oct 2005 08:09:17 +0200 (CEST) (envelope-from pho@peter.osted.lan) Received: (from pho@localhost) by peter.osted.lan (8.13.1/8.13.1/Submit) id j9R69HYK055665; Thu, 27 Oct 2005 08:09:17 +0200 (CEST) (envelope-from pho) Date: Thu, 27 Oct 2005 08:09:17 +0200 From: Peter Holm To: Gleb Smirnoff Message-ID: <20051027060916.GA55631@peter.osted.lan> References: <20051026072337.GA31319@peter.osted.lan> <20051026083147.GA41520@cell.sick.ru> <20051026130926.GA41293@peter.osted.lan> <20051026131423.GH41520@cell.sick.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051026131423.GH41520@cell.sick.ru> User-Agent: Mutt/1.4.2.1i Cc: current@FreeBSD.org Subject: Re: panic: mutex nfsd_mtx owned at nfsserver/nfs_serv.c:2160 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: Thu, 27 Oct 2005 06:09:20 -0000 On Wed, Oct 26, 2005 at 05:14:23PM +0400, Gleb Smirnoff wrote: > On Wed, Oct 26, 2005 at 03:09:26PM +0200, Peter Holm wrote: > P> > On Wed, Oct 26, 2005 at 09:23:37AM +0200, Peter Holm wrote: > P> > P> While stress testing RELENG_6_0 with a nfs mounted file system on a > P> > P> box running HEAD from Oct 24 13:21 UTC I got this panic (on HEAD): > P> > P> http://people.freebsd.org/~pho/stress/log/nfsd.html > P> > > P> > let's try out this one. > P> > > P> > P> With this patch I got a (unrelated ?) > P> panic: lock (sleep mutex) Giant not locked @ nfsserver/nfs_serv.c:2193 > > Related. Please try out a corrected patch. > After running for +15 hours I think that I can conclude that this patch has fixed the problem? - Peter > -- > Totus tuus, Glebius. > GLEBIUS-RIPN GLEB-RIPE > Index: nfs_serv.c > =================================================================== > RCS file: /home/ncvs/src/sys/nfsserver/nfs_serv.c,v > retrieving revision 1.156 > diff -u -r1.156 nfs_serv.c > --- nfs_serv.c 17 Apr 2005 16:25:36 -0000 1.156 > +++ nfs_serv.c 26 Oct 2005 13:13:25 -0000 > @@ -2092,6 +2092,8 @@ > tl = nfsm_dissect_nonblock(u_int32_t *, NFSX_UNSIGNED); > vtyp = nfsv3tov_type(*tl); > if (vtyp != VCHR && vtyp != VBLK && vtyp != VSOCK && vtyp != VFIFO) { > + NFSD_UNLOCK(); > + mtx_lock(&Giant); /* VFS */ > error = NFSERR_BADTYPE; > goto out; > } > @@ -2108,6 +2110,8 @@ > * Iff doesn't exist, create it. > */ > if (nd.ni_vp) { > + NFSD_UNLOCK(); > + mtx_lock(&Giant); /* VFS */ > error = EEXIST; > goto out; > }