mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Turn off duplicate lock checking for inp locks because udp_input()
intentionally locks two inp records simultaneously.
This commit is contained in:
parent
ff02a1197f
commit
e1e1b6e892
1 changed files with 1 additions and 1 deletions
|
|
@ -246,7 +246,7 @@ struct inpcbinfo { /* XXX documentation, prefixes */
|
|||
};
|
||||
|
||||
#define INP_LOCK_INIT(inp, d) \
|
||||
mtx_init(&(inp)->inp_mtx, (d), NULL, MTX_DEF | MTX_RECURSE)
|
||||
mtx_init(&(inp)->inp_mtx, (d), NULL, MTX_DEF | MTX_RECURSE | MTX_DUPOK)
|
||||
#define INP_LOCK_DESTROY(inp) mtx_destroy(&(inp)->inp_mtx)
|
||||
#define INP_LOCK(inp) mtx_lock(&(inp)->inp_mtx)
|
||||
#define INP_UNLOCK(inp) mtx_unlock(&(inp)->inp_mtx)
|
||||
|
|
|
|||
Loading…
Reference in a new issue