From owner-freebsd-current@FreeBSD.ORG Tue Feb 5 16:38:22 2008 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 F41AA16A417 for ; Tue, 5 Feb 2008 16:38:21 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.153]) by mx1.freebsd.org (Postfix) with ESMTP id 7402D13C465 for ; Tue, 5 Feb 2008 16:38:20 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: by fg-out-1718.google.com with SMTP id 16so2371481fgg.35 for ; Tue, 05 Feb 2008 08:38:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=TDqaoG/lzVNP9sDWLN2usMJ3z0zwgAdi4qWt8ws+rxA=; b=bHH3K4bRw0kAH14lws8CigyJIBQlYhsmOgdtKlc0B3rK8EzMLB5zyE5aK+L41cw4EqxvtQvREKRj1vC5VNgFGqekU33VFgS9/ZvetGVjzCxo8pwUShhkvSGKKbWoBOCLK5FenNI79xdp/Ip9haU9iYLMm9R5xfPNIWwFytPh8YY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=A5/QLB5i1hYJgBIV4REpAzq5en042DaqVmNF1Nwb7DiTr5jm/OeV8NksXMNzY2vUlUhfuJELivNo1iBp6gE/cVpt1Go4Un+N8f13Q64FI+HsswN9FcMRFCZnMxLGwv2DNmOBTcGSyBBTvEPSJD4DH/ICKWvaGSJA1KPxuQrn96g= Received: by 10.86.100.7 with SMTP id x7mr7988730fgb.16.1202229498424; Tue, 05 Feb 2008 08:38:18 -0800 (PST) Received: by 10.86.28.19 with HTTP; Tue, 5 Feb 2008 08:38:18 -0800 (PST) Message-ID: <3bbf2fe10802050838p6272edces948789be6b1ddc4b@mail.gmail.com> Date: Tue, 5 Feb 2008 17:38:18 +0100 From: "Attilio Rao" Sender: asmrookie@gmail.com To: "Yar Tikhiy" In-Reply-To: <20080205163602.GB56373@comp.chem.msu.su> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3bbf2fe10801291411v302dd33at54ebe538397e8fac@mail.gmail.com> <3bbf2fe10801300707u3fd121c0k199605c2f0be6cbf@mail.gmail.com> <790a9fff0801301352xa91a69ci3f08488dfcfc982@mail.gmail.com> <3bbf2fe10801310243tddedfeckbc4c94be87f0a4ca@mail.gmail.com> <20080131130210.GA37090@comp.chem.msu.su> <3bbf2fe10801310504j486924bdm86e0436597a42b09@mail.gmail.com> <790a9fff0801312241s346068b6s40fcae71ebbf546@mail.gmail.com> <20080201145051.GE79881@comp.chem.msu.su> <3bbf2fe10802011041t28e419c9n5f0f6f34d6450184@mail.gmail.com> <20080205163602.GB56373@comp.chem.msu.su> X-Google-Sender-Auth: 48dc84e9439c48e1 Cc: Kostik Belousov , Scot Hetzel , freebsd-current@freebsd.org, Doug Barton Subject: Re: panic: System call lstat returning with 1 locks held 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, 05 Feb 2008 16:38:22 -0000 2008/2/5, Yar Tikhiy : > BTW, I seem to be hitting yet another lockmgr-related panic. > > My system won't reboot under certain conditions: it'll panic instead > in vfs_unmountall(). Namely it will panic if I reboot from single-user > mode while it'll reboot OK from multi-user mode. I have no idea > yet about the exact reason for the behaviour. The output from kgdb > attached. > > Note that this panic shouldn't be NTFS-related as I can trigger it > by typing `reboot' immediately after booting into single user. Yes, sorry for this. I know of this and I alredy patched my tree. I did the WITNESS stuff based on the assumption drained lock will never be release while they are. Unmounting is currently the only one consumer of LK_DRAIN I know of and I just need to do a WITNESS_LOCK() over there. I will provide you an updated patch about this problem and another one found by kris@. I will look later at the backtrace so we can go on. Thanks, Attilio -- Peace can only be achieved by understanding - A. Einstein