From owner-freebsd-current Sun Jun 27 8:50:20 1999 Delivered-To: freebsd-current@freebsd.org Received: from ftp.dns.ne.jp (ftp.dns.ne.jp [210.155.3.5]) by hub.freebsd.org (Postfix) with ESMTP id C31B114F34; Sun, 27 Jun 1999 08:50:13 -0700 (PDT) (envelope-from tanimura@sakuramail.com) Received: from silver.carrots (yksk0422.ppp.infoweb.ne.jp [210.131.91.230]) by ftp.dns.ne.jp (8.9.2/8.8.5) with ESMTP id AAA21178; Mon, 28 Jun 1999 00:49:42 +0900 (JST) Received: from localhost (localhost [127.0.0.1]) by silver.carrots (8.9.3+3.2W/3.7W) with ESMTP id AAA04335; Mon, 28 Jun 1999 00:49:21 +0900 (JST) To: hibma@skylink.it Cc: current@FreeBSD.ORG, mckusick@FreeBSD.ORG, Peter Wemm Cc: Seigo Tanimura Subject: Re: lockmgr panics From: Seigo Tanimura In-Reply-To: Your message of "Sun, 27 Jun 1999 14:15:06 +0200 (CEST)" References: X-Mailer: Mew version 1.93 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <19990628004921U.tanimura@sakuramail.com> Date: Mon, 28 Jun 1999 00:49:21 +0900 X-Dispatcher: imput version 980905(IM100) Lines: 32 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG From: Nick Hibma Subject: lockmgr panics Date: Sun, 27 Jun 1999 14:15:06 +0200 (CEST) Message-ID: hibma> lockmgr: pid , not exclusive lock holder -2 unlocking Did you really get that message? if the unlocking process is pid -2(LK_KERNPROC), we can unlock, as in: [sys/kern/kern_lock.c:lockmgr()] > case LK_RELEASE: > if (lkp->lk_exclusivecount != 0) { > #if !defined(MAX_PERF) > if (lkp->lk_lockholder != pid && > lkp->lk_lockholder != LK_KERNPROC) /* FALSE */ > panic("lockmgr: pid %d, not %s %d unlocking", > pid, "exclusive lock holder", > lkp->lk_lockholder); Although the fixes by Peter seemed to have solved the problem, I saw lockmgr: pid -2, not exclusive lock holder 48 unlocking on savecore(8) after another panic reboot. I have to go to bed now... I will see what is going on tomorrow. Seigo TANIMURA To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message