From owner-freebsd-current@FreeBSD.ORG Fri Jan 16 14:33:27 2004 Return-Path: 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 8D0A016A4CF for ; Fri, 16 Jan 2004 14:33:27 -0800 (PST) Received: from mail2.speakeasy.net (mail2.speakeasy.net [216.254.0.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9FA8443D53 for ; Fri, 16 Jan 2004 14:33:20 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 19379 invoked from network); 16 Jan 2004 22:33:20 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 16 Jan 2004 22:33:20 -0000 Received: from 10.50.40.206 (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.10/8.12.10) with ESMTP id i0GMX4M6089506; Fri, 16 Jan 2004 17:33:14 -0500 (EST) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Fri, 16 Jan 2004 17:26:02 -0500 User-Agent: KMail/1.5.4 References: <200401161659.42394.jhb@FreeBSD.org> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200401161726.02787.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: "Robin P. Blanchard" cc: current@freebsd.org Subject: Re: Panic with this morning's (~9am EDT, 15 jan 2004) sources. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Fri, 16 Jan 2004 22:33:27 -0000 On Friday 16 January 2004 05:01 pm, Dag-Erling Sm=F8rgrav wrote: > John Baldwin writes: > > You could only lock newfdp #ifdef INVARIANTS perhaps since that is the > > only reason you are doing it. That doesn't pessimize production kernels > > while still letting your assertions work ok. > > now that's an idea (though it's a bit of a hack) > > > You could also perhaps tweak the > > mtx_assert to somehow check the state of the fd pointer to see if it is= a > > new table (refcount of 0 or some such) > > that would pessimize the common case... Well, only for kernels with INVARIANTS in them. :) If you do 'if (foo)=20 mtx_assert(...)' then gcc should optimize the whole thing out without=20 invariants. =2D-=20 John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" =3D http://www.FreeBSD.org