From owner-cvs-all@FreeBSD.ORG Thu Jun 24 01:47:49 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4310316A4CE; Thu, 24 Jun 2004 01:47:49 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23C9B43D46; Thu, 24 Jun 2004 01:47:49 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i5O1lW05013878; Thu, 24 Jun 2004 01:47:32 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i5O1lWrc013877; Thu, 24 Jun 2004 01:47:32 GMT (envelope-from rwatson) Message-Id: <200406240147.i5O1lWrc013877@repoman.freebsd.org> From: Robert Watson Date: Thu, 24 Jun 2004 01:47:32 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/netgraph ng_base.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jun 2004 01:47:49 -0000 rwatson 2004-06-24 01:47:32 UTC FreeBSD src repository Modified files: sys/netgraph ng_base.c Log: Clean up use of ng_hdhasb_mtx a little: - Assert the mutex in NG_IDHASH_FIND() since the mutex is required to safely walk the node lists in the ng_ID_hash table. - Acquire the ng_nodelist_mtx when walking ng_allnodes or ng_allhooks to generate state dump output from the netgraph sysctls. Revision Changes Path 1.76 +5 -0 src/sys/netgraph/ng_base.c