Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jan 2012 06:09:30 +0900
From:      rozhuk.im@gmail.com
To:        <freebsd-net@FreeBSD.org>
Subject:   ng_bridge and locks
Message-ID:  <4f1dcc8e.45c8cc0a.2935.2254@mx.google.com>

next in thread | raw e-mail | index | archive | help
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?







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4f1dcc8e.45c8cc0a.2935.2254>