From owner-freebsd-current@FreeBSD.ORG Wed Feb 6 10:30:25 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 97D3B16A498; Wed, 6 Feb 2008 10:30:25 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.freebsd.org (Postfix) with ESMTP id CE39513C46E; Wed, 6 Feb 2008 10:30:24 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.4/8.13.4) with ESMTP id m16AUMuh007718; Wed, 6 Feb 2008 13:30:22 +0300 (MSK) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.4/8.13.4/Submit) id m16AUKbL007712; Wed, 6 Feb 2008 13:30:21 +0300 (MSK) (envelope-from yar) Date: Wed, 6 Feb 2008 13:30:20 +0300 From: Yar Tikhiy To: Attilio Rao Message-ID: <20080206103019.GA7592@comp.chem.msu.su> References: <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> <3bbf2fe10802050838p6272edces948789be6b1ddc4b@mail.gmail.com> <3bbf2fe10802050900y6c8a90e7t127e88102681d30c@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3bbf2fe10802050900y6c8a90e7t127e88102681d30c@mail.gmail.com> User-Agent: Mutt/1.5.9i 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: Wed, 06 Feb 2008 10:30:25 -0000 On Tue, Feb 05, 2008 at 06:00:33PM +0100, Attilio Rao wrote: > 2008/2/5, Attilio Rao : > > 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. > > More specifically, here is the "fixed" version: > http://www.freebsd.org/~attilio/witness_lockmgr2.diff > > (against stock -CURRENT). > Kris and me tested (rather) this version and I found it reliable, so I > want to commit to CVS in a couple of hours. > If you can add any other feedback to it, I would be very happy. Feedback 1: The panic before reboot is gone. Thanks a lot! Now returning to the NTFS issue, stay tuned... :-) -- Yar