From owner-freebsd-arch@FreeBSD.ORG Tue Jan 27 15:10:49 2009 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 325911065674 for ; Tue, 27 Jan 2009 15:10:49 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 0CAB38FC1A for ; Tue, 27 Jan 2009 15:10:49 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [65.122.17.41]) by cyrus.watson.org (Postfix) with ESMTPS id 9D77546B4C; Tue, 27 Jan 2009 10:10:48 -0500 (EST) Date: Tue, 27 Jan 2009 15:10:48 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Julian Elischer In-Reply-To: <497C249C.5060507@elischer.org> Message-ID: References: <23211.1232871523@critter.freebsd.dk> <497C249C.5060507@elischer.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: arch@freebsd.org, Poul-Henning Kamp Subject: Re: need for another mutex type/flag? X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2009 15:10:49 -0000 On Sun, 25 Jan 2009, Julian Elischer wrote: > Even purely documentary would be good but given the option, I'd like it to > scream when Witness is enabled and you try get another mutex.... > > there are certain contexts (e.g. in most netgraph nodes) where we really > want the authors to only take such locks and taking more unpredictable > mutexes plays havoc with netgraph response times as a system as a whole, > since if one node blocks, teh thread doesn't get to go off and service other > nodes. I thought lots of Netgraph nodes liked to do things like call m_pullup() and m_prepend()? Disallowing acquiring mutexes will prevent them from doing that. Robert N M Watson Computer Laboratory University of Cambridge