Date: Sun, 14 Mar 2004 17:52:00 -0800 (PST) From: Robert Watson <rwatson@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/net if_tap.c Message-ID: <200403150152.i2F1q1Ip097693@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403150152.i2F1q1Ip097693>
