rwatson f0ee7a159b Rather than using IFNET_RLOCK() when iterating over (and modifying) the
ifnet list during if_ef load, directly acquire the ifnet_sxlock
exclusively.  That way when if_alloc() recurses the lock, it's a write
recursion rather than a read->write recursion.

This code structure is arguably a bug, so add a comment indicating that
this is the case.  Post-8.0, we should fix this, but this commit
resolves panic-on-load for if_ef.

Discussed with:	bz, julian
Reported by:	phk
MFC after:	3 days
2009-08-23 21:00:21 +00:00
..
2009-08-23 20:26:09 +00:00
2009-08-23 20:26:09 +00:00
2009-06-25 16:48:13 +00:00
2009-05-23 13:23:46 +00:00
2009-08-23 08:04:40 +00:00