From owner-freebsd-stable@FreeBSD.ORG Mon Jun 29 14:56:28 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F080C1065673; Mon, 29 Jun 2009 14:56:28 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-bw0-f216.google.com (mail-bw0-f216.google.com [209.85.218.216]) by mx1.freebsd.org (Postfix) with ESMTP id 3C94B8FC14; Mon, 29 Jun 2009 14:56:27 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: by bwz12 with SMTP id 12so388930bwz.43 for ; Mon, 29 Jun 2009 07:56:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Z2u0tzAy8XkNA7kHFh4I23fJnJWFo1nCjh3A27b6SZ8=; b=dvpxhRVx8kxznNMNkc6JWb5qS4hxqNsXXRjOL4C+snEQH+axxulZzayerZ7Z5mOLqF Wt+jhGQSmjOfM6bNv9QTod4KzlvOBrZ5bxqWJLwhxWXuuP8BigUvClxGpVEqbMEhsNfX GkTZvdNkrhuivWrvcnnB4EFFWpzE4H/+4QR60= 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 :cc:content-type:content-transfer-encoding; b=AL6WFu9AT8jPpHPy3PA8dRZEbXbk28h9+Zt1125NHOXbsvFxJTOrd8sqcX70ta+FZN LqAWJaH4Jad7Hb0864IEhOlz/3Z9L/obhHCz/VRzwjf9akwPPsfUFVinWoMMzoi70ms3 6OMlDeFG8ZYvGK3d1JSiluH51mBhbGWtIPKh4= MIME-Version: 1.0 Received: by 10.204.64.67 with SMTP id d3mr7218564bki.142.1246287387157; Mon, 29 Jun 2009 07:56:27 -0700 (PDT) In-Reply-To: <3bbf2fe10906290706q349211c1pe00cc57cc18a1315@mail.gmail.com> References: <3bbf2fe10906290458v3d57441ar44c4ed8f36c957f@mail.gmail.com> <3bbf2fe10906290611j683a0ddawbd524e406e832d54@mail.gmail.com> <3bbf2fe10906290620r7005f47dtfef8becc7f439515@mail.gmail.com> <3bbf2fe10906290706q349211c1pe00cc57cc18a1315@mail.gmail.com> Date: Mon, 29 Jun 2009 18:56:27 +0400 Message-ID: From: pluknet To: Attilio Rao Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-stable Subject: Re: [nfs] process locks in "bo_wwait" on 6.4 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jun 2009 14:56:29 -0000 2009/6/29 Attilio Rao : > 2009/6/29 pluknet : >> 2009/6/29 Attilio Rao : >>> 2009/6/29 pluknet : >>>> 2009/6/29 Attilio Rao : >>>>> 2009/6/29 pluknet : >>>>>> 2009/6/29 Attilio Rao : >>>>>>> 2009/6/29 pluknet : >>>>>>>> 2009/6/26 pluknet : >>>>>>>>> 2009/6/26 pluknet : >>>>>>>>>> Hello. >>>>>>>>>> >>>>>>>>>> While building a module on nfs mounted /usr/src >>>>>>>>>> I got an unkillable process waiting forever in bo_wwait. >>>>>>>>> >>>>>>>>> Small note: iface on NFS server has mtu changed from 1500 to 1450= . >>>>>>>>> Can this be a source of the problem? >>>>>>>> >>>>>>>> This is 100% reproducible. Lock in the same place. Any hints? >>>>>>> >>>>>>> Can you also show the value of ps? >>>>>>> A precise map of what processes are doing would give an help. >>>>>>> Also would be useful to printout traces for other threads and not o= nly >>>>>>> the stucked one. >>>>>>> >>>>>> >>>>>> >From another run: >>>>> >>>>> I'm unable to see who would be locking the buffer object in question. >>>>> Do you have INVARIANT_SUPPORT/INVARIANTS on? >>>> >>>> Yes, I do both. >>>> >>>>> What revision of /usr/src/sys/kern/vfs_bio.c are you running with? >>>>> >>>> >>>> As of 6.4-R: CVS rev 1.491.2.12.4.1 / SVN rev 183531. >>> >>> Please try this patch and report. >>> >>> Thanks, >>> Attilio >>> >>> --- src/sys/nfsclient/nfs_vnops.c =A0 =A0 =A0 2008/02/13 20:44:18 =A0 = =A0 1.281 >>> +++ src/sys/nfsclient/nfs_vnops.c =A0 =A0 =A0 2008/03/22 09:15:15 =A0 = =A0 1.282 >>> @@ -33,7 +33,7 @@ >>> =A0*/ >>> >>> =A0#include >>> -__FBSDID("$FreeBSD: >>> /usr/local/www/cvsroot/FreeBSD/src/sys/nfsclient/nfs_vnops.c,v 1.281 >>> 2008/02/13 20:44:18 attilio Exp $"); >>> +__FBSDID("$FreeBSD: >>> /usr/local/www/cvsroot/FreeBSD/src/sys/nfsclient/nfs_vnops.c,v 1.282 >>> 2008/03/22 09:15:15 jeff Exp $"); >>> >> >> Do you refer to the whole svn r177493, or is its nfs part will be enough= ? >> This only vfs_vnops.c diff seems not applicable without underneath >> kernel part changes. >> >> I'll try. Thanks. > > The NFS part should be enough, though I don't understand why it > doesn't trigger a panic on STABLE_6 as long as, at least in my > revision, there is an assert for the buffer object lock to be held in > bufobj_wwait(). What's your sys/kern/vfs_bio.c rev? > As of 6.4-R. $FreeBSD: src/sys/kern/vfs_bio.c,v 1.491.2.12.4.1 2008/10/02 02:57:24 kensmith Exp $ --=20 wbr, pluknet