From owner-cvs-src@FreeBSD.ORG Sun Mar 14 17:52:01 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE54216A4D1; Sun, 14 Mar 2004 17:52:01 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id ABCBD43D60; Sun, 14 Mar 2004 17:52:01 -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 i2F1q1Ge097700; Sun, 14 Mar 2004 17:52:01 -0800 (PST) (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i2F1q1Ip097693; Sun, 14 Mar 2004 17:52:01 -0800 (PST) (envelope-from rwatson) Message-Id: <200403150152.i2F1q1Ip097693@repoman.freebsd.org> From: Robert Watson Date: Sun, 14 Mar 2004 17:52:00 -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_tap.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Mar 2004 01:52:02 -0000 rwatson 2004/03/14 17:52:00 PST FreeBSD src repository Modified files: sys/net if_tap.c Log: Lock down global variables in if_tap (primarily, the tap softc list); add tapmtx, which protects globale variables. Notes: - The EBUSY check in MOD_UNLOAD may be subject to a race. Moving the event handler unregister inside the mutex grab may prevent that race. - Locking of global variables safely is now possible because tapclones is only modified when the module is loading or unloading, thanks to phk's recent chang to clone_setup(). - softc locking to follow. Revision Changes Path 1.39 +28 -3 src/sys/net/if_tap.c