From owner-freebsd-current@FreeBSD.ORG Fri Sep 2 18:51:11 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org 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 6C36A16A41F; Fri, 2 Sep 2005 18:51:11 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from mv.twc.weather.com (mv.twc.weather.com [65.212.71.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id C66CA43D45; Fri, 2 Sep 2005 18:51:10 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from [10.50.40.201] (Not Verified[10.50.40.201]) by mv.twc.weather.com with NetIQ MailMarshal (v6, 0, 3, 8) id ; Fri, 02 Sep 2005 15:06:33 -0400 From: John Baldwin To: freebsd-current@freebsd.org Date: Fri, 2 Sep 2005 14:40:11 -0400 User-Agent: KMail/1.8 References: <200509020352.j823qKm9022255@gw.catspoiler.org> In-Reply-To: <200509020352.j823qKm9022255@gw.catspoiler.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509021440.13022.jhb@FreeBSD.org> Cc: Don Lewis , rwatson@freebsd.org, current@freebsd.org Subject: Re: Witness patch 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: Fri, 02 Sep 2005 18:51:11 -0000 On Thursday 01 September 2005 11:52 pm, Don Lewis wrote: > On 1 Sep, John Baldwin wrote: > > This patch forces witness to complain if any mutex is held when Giant is > > locked to enforce Giant being the first mutex in the lock order. This > > might help track down some of the network LORs being reported recently. > > > > http://www.FreeBSD.org/~jhb/patches/witness.patch > > I think it would make sense to print different messages for the > different trigger conditions. Hmm, I guess I view them as all just being reversals, and that we have some implicit orders that go something like this: sleepable locks --> Giant --> non-sleepable locks --> spin locks -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org