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:
parent
4fb52093a8
commit
b098744265
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user