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
@ -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…
x
Reference in New Issue
Block a user