Mark ng_vjc node as FORCE_WRITER to protect slcompress state.

I think it can be the reason of livelock in netgraph reported by some
mpd users.

MFC after:	3 days
This commit is contained in:
Alexander Motin 2009-01-08 17:51:15 +00:00
parent 4fb52093a8
commit b098744265
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=186907

View File

@ -249,6 +249,9 @@ ng_vjc_constructor(node_p node)
NG_NODE_SET_PRIVATE(node, priv);
/* slcompress is not thread-safe. Protect it's state here. */
NG_NODE_FORCE_WRITER(node);
/* Done */
return (0);
}