1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-26 11:47:31 +00:00
freebsd/sys/compat
Robert Watson 77dfcdc445 Rework global locks for interface list and index management, correcting
several critical bugs, including race conditions and lock order issues:

Replace the single rwlock, ifnet_lock, with two locks, an rwlock and an
sxlock.  Either can be held to stablize the lists and indexes, but both
are required to write.  This allows the list to be held stable in both
network interrupt contexts and sleepable user threads across sleeping
memory allocations or device driver interactions.  As before, writes to
the interface list must occur from sleepable contexts.

Reviewed by:	bz, julian
MFC after:	3 days
2009-08-23 20:40:19 +00:00
..
freebsd32 Fix the freebsd32 versions of semsys(), shmsys(), and msgsys() to use the 2009-07-27 16:03:04 +00:00
ia32
linprocfs Merge the remainder of kern_vimage.c and vimage.h into vnet.c and 2009-08-01 19:26:27 +00:00
linsysfs
linux Rework global locks for interface list and index management, correcting 2009-08-23 20:40:19 +00:00
ndis provides a extra write buffer when the NDIS driver want to send a 2009-06-26 01:42:41 +00:00
netbsd
svr4 Merge the remainder of kern_vimage.c and vimage.h into vnet.c and 2009-08-01 19:26:27 +00:00