From owner-freebsd-current@FreeBSD.ORG Fri Jan 16 14:02:24 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 B4FDE16A4CE; Fri, 16 Jan 2004 14:02:24 -0800 (PST) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6660143D5F; Fri, 16 Jan 2004 14:02:08 -0800 (PST) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id 6A6E25309; Fri, 16 Jan 2004 23:02:07 +0100 (CET) Received: from dwp.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id A88905308; Fri, 16 Jan 2004 23:01:58 +0100 (CET) Received: by dwp.des.no (Postfix, from userid 2602) id 2A53233C9A; Fri, 16 Jan 2004 23:01:58 +0100 (CET) To: John Baldwin References: <200401161523.32120.jhb@FreeBSD.org> <200401161659.42394.jhb@FreeBSD.org> From: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Fri, 16 Jan 2004 23:01:58 +0100 In-Reply-To: <200401161659.42394.jhb@FreeBSD.org> (John Baldwin's message of "Fri, 16 Jan 2004 16:59:42 -0500") Message-ID: User-Agent: Gnus/5.090024 (Oort Gnus v0.24) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on flood.des.no X-Spam-Level: ss X-Spam-Status: No, hits=2.6 required=5.0 tests=RCVD_IN_DYNABLOCK, RCVD_IN_SORBS autolearn=no version=2.61 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:02:24 -0000 John Baldwin writes: > You could only lock newfdp #ifdef INVARIANTS perhaps since that is the on= ly > 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... DES --=20 Dag-Erling Sm=F8rgrav - des@des.no