The last argument to mtx_init() should be MTX_DEF, not 0. This is not a
functional change since MTX_DEF happens to be defined as 0.
This commit is contained in:
parent
0d24e4fadd
commit
27358f2607
@ -75,7 +75,8 @@ static struct mtx ngatm_unilist_mtx;
|
||||
static void
|
||||
uni_msg_init(void)
|
||||
{
|
||||
mtx_init(&ngatm_unilist_mtx, "netgraph UNI msg header lists", NULL, 0);
|
||||
mtx_init(&ngatm_unilist_mtx, "netgraph UNI msg header lists", NULL,
|
||||
MTX_DEF);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -2981,10 +2981,14 @@ ngb_mod_event(module_t mod, int event, void *data)
|
||||
case MOD_LOAD:
|
||||
/* Register line discipline */
|
||||
mtx_init(&ng_worklist_mtx, "ng_worklist", NULL, MTX_SPIN);
|
||||
mtx_init(&ng_typelist_mtx, "netgraph types mutex", NULL, 0);
|
||||
mtx_init(&ng_nodelist_mtx, "netgraph nodelist mutex", NULL, 0);
|
||||
mtx_init(&ng_idhash_mtx, "netgraph idhash mutex", NULL, 0);
|
||||
mtx_init(&ngq_mtx, "netgraph free item list mutex", NULL, 0);
|
||||
mtx_init(&ng_typelist_mtx, "netgraph types mutex", NULL,
|
||||
MTX_DEF);
|
||||
mtx_init(&ng_nodelist_mtx, "netgraph nodelist mutex", NULL,
|
||||
MTX_DEF);
|
||||
mtx_init(&ng_idhash_mtx, "netgraph idhash mutex", NULL,
|
||||
MTX_DEF);
|
||||
mtx_init(&ngq_mtx, "netgraph free item list mutex", NULL,
|
||||
MTX_DEF);
|
||||
s = splimp();
|
||||
/* XXX could use NETISR_MPSAFE but need to verify code */
|
||||
netisr_register(NETISR_NETGRAPH, (netisr_t *)ngintr, NULL, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user