From owner-freebsd-current@FreeBSD.ORG Thu Sep 15 20:16:21 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 7840716A41F; Thu, 15 Sep 2005 20:16:21 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [204.156.12.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23FF343D7B; Thu, 15 Sep 2005 20:16:18 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by cyrus.watson.org (Postfix) with ESMTP id 2E21B46B42; Thu, 15 Sep 2005 16:16:17 -0400 (EDT) Date: Thu, 15 Sep 2005 21:16:17 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: John Baldwin In-Reply-To: <200509151557.11162.jhb@FreeBSD.org> Message-ID: <20050915211552.O75005@fledge.watson.org> References: <200509151422.04459.jhb@FreeBSD.org> <20050915202308.H75005@fledge.watson.org> <200509151557.11162.jhb@FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-current@freebsd.org, dan.cojocar@gmail.com Subject: Re: LOR in /usr/src/sys/netinet/in.c:972 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: Thu, 15 Sep 2005 20:16:21 -0000 On Thu, 15 Sep 2005, John Baldwin wrote: >>> This is a real LOR caused by the fact that in_addmulti() holds the >>> in_multi_mtx() lock across the call to if_addmulti() and if_addmulti() >>> will acquire Giant for non-MPsafe drivers around calls into their >>> ioctl routine. I think that to better expose these issues, the various >>> conditional-Giant macros need to include a witness_warn() to make sure >>> only sleepable locks and/or Giant are held when the lock macro is >>> invoked. >> >> The right strategy here may in fact be to eliminate Giant acquisition >> by network device drivers... > > I'm working on that. :) And it is much appreciated :-). Robert N M Watson