mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
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
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Reference in a new issue