ng_bridge and locks
rozhuk.im at gmail.com
rozhuk.im at gmail.com
Mon Jan 23 21:09:36 UTC 2012
Hi!
I found a comment in the code:
/*
* This node has all kinds of stuff that could be screwed by SMP.
* Until it gets it's own internal protection, we go through in
* single file. This could hurt a machine bridging beteen two
* GB ethernets so it should be fixed.
* When it's fixed the process SHOULD NOT SLEEP, spinlocks please!
* (and atomic ops )
*/
mtx_init(...., MTX_DEF);
How bad to use netgraph node MTX_DEF mutex?
More information about the freebsd-net
mailing list