freebsd-dev/sys/contrib
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
..
altq/altq Rework global locks for interface list and index management, correcting 2009-08-23 20:40:19 +00:00
dev Remove build timestamps from the following files: 2009-07-11 22:30:37 +00:00
ia64/libuwx Apply local modifications to make Unwind Express BETA 10 buildable and 2006-07-07 23:56:34 +00:00
ipfilter/netinet Merge the remainder of kern_vimage.c and vimage.h into vnet.c and 2009-08-01 19:26:27 +00:00
ngatm Use proper form of gnu designated initalizers. This lets 2009-06-24 12:01:10 +00:00
pf If we cannot immediately get the pf_consistency_lock in the purge thread, 2009-08-19 00:10:10 +00:00
rdma Merge the remainder of kern_vimage.c and vimage.h into vnet.c and 2009-08-01 19:26:27 +00:00