From owner-cvs-all@FreeBSD.ORG Tue Mar 9 08:31:20 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 B922D16A4CE; Tue, 9 Mar 2004 08:31:20 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BBE843D45; Tue, 9 Mar 2004 08:31:20 -0800 (PST) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i29GVKGe036474; Tue, 9 Mar 2004 08:31:20 -0800 (PST) (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i29GVKH1036455; Tue, 9 Mar 2004 08:31:20 -0800 (PST) (envelope-from rwatson) Message-Id: <200403091631.i29GVKH1036455@repoman.freebsd.org> From: Robert Watson Date: Tue, 9 Mar 2004 08:31:20 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/net if_disc.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: Tue, 09 Mar 2004 16:31:21 -0000 rwatson 2004/03/09 08:31:20 PST FreeBSD src repository Modified files: sys/net if_disc.c Log: Introduce disc_mtx to protect the global softc list in if_disc. Since there are two destroy paths for if_disc interfaces -- module unload and cloan interface destroy, create a new utility function disc_destroy(), which is callded on a softc after it has been removed from the global softc list; the cloaner and module unload entry paths will both remove it before calling disc_destroy(). Reviewed by: pjd Revision Changes Path 1.39 +29 -8 src/sys/net/if_disc.c