From owner-freebsd-current Thu Mar 6 10: 1:42 2003 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 0C60937B405 for ; Thu, 6 Mar 2003 10:01:36 -0800 (PST) Received: from mail.speakeasy.net (mail14.speakeasy.net [216.254.0.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id EAFE343F75 for ; Thu, 6 Mar 2003 10:01:35 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 15886 invoked from network); 6 Mar 2003 18:01:40 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail14.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 6 Mar 2003 18:01:40 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.6/8.12.6) with ESMTP id h26HwihT052165; Thu, 6 Mar 2003 12:58:44 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20030305201016.S61787@flugsvamp.com> Date: Thu, 06 Mar 2003 13:01:49 -0500 (EST) From: John Baldwin To: Jonathan Lemon Subject: RE: witness: nfs & buf queue Cc: current@freebsd.org Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 06-Mar-2003 Jonathan Lemon wrote: > Doing a kernel build over NFS on today's -current gives a pile of > following error messages during the final link phase: > > Acquiring lockmgr lock "nfs" with the following non-sleepablelocks held: > exclusive sleep mutex buf queue lock r = 0 (0xc0427b60) locked @ ../../../kern/vfs_bio.c:2107 > Acquiring lockmgr lock "nfs" with the following non-sleepablelocks held: > exclusive sleep mutex buf queue lock r = 0 (0xc0427b60) locked @ ../../../kern/vfs_bio.c:2107 > Acquiring lockmgr lock "nfs" with the following non-sleepablelocks held: > exclusive sleep mutex buf queue lock r = 0 (0xc0427b60) locked @ ../../../kern/vfs_bio.c:2107 > ... Witness didn't used to complain about these until my recent commits, so these could be old bugs that we are just now seeing. It does look like all the lock functions in inmem() use LK_NOWAIT which is exempted from the witness check: if ((flags & (LK_NOWAIT|LK_RELEASE)) == 0) WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, &lkp->lk_interlock->mtx_object, "Acquiring lockmgr lock \"%s\"", lkp->lk_wmesg); A stack trace from one of these would be helpful. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message