mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Pass MTX_DEF as the last argument to mtx_init() instead of 0. This
is not a functional change. The code happened to work properly only because MTX_DEF is defined as 0.
This commit is contained in:
parent
e21afc60bf
commit
50105bcf1a
2 changed files with 3 additions and 3 deletions
|
|
@ -138,7 +138,7 @@ mbp_create(struct mbpool **pp, const char *name, bus_dma_tag_t dmat,
|
|||
(*pp)->nchunks = nchunks;
|
||||
|
||||
SLIST_INIT(&(*pp)->free_list);
|
||||
mtx_init(&(*pp)->free_lock, name, NULL, 0);
|
||||
mtx_init(&(*pp)->free_lock, name, NULL, MTX_DEF);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -426,7 +426,7 @@ mbuf_init(void *dummy)
|
|||
/*
|
||||
* Initialize condition variables and general container mutex locks.
|
||||
*/
|
||||
mtx_init(&mbuf_gen, "mbuf subsystem general lists lock", NULL, 0);
|
||||
mtx_init(&mbuf_gen, "mbuf subsystem general lists lock", NULL, MTX_DEF);
|
||||
cv_init(&(mb_list_mbuf.ml_genlist->mgl_mstarved), "mbuf pool starved");
|
||||
cv_init(&(mb_list_clust.ml_genlist->mgl_mstarved),
|
||||
"mcluster pool starved");
|
||||
|
|
@ -491,7 +491,7 @@ mbuf_init(void *dummy)
|
|||
(mb_list_clust.ml_cntlst[i] == NULL))
|
||||
goto bad;
|
||||
|
||||
mtx_init(&mbuf_pcpu[i], "mbuf PCPU list lock", NULL, 0);
|
||||
mtx_init(&mbuf_pcpu[i], "mbuf PCPU list lock", NULL, MTX_DEF);
|
||||
mb_list_mbuf.ml_cntlst[i]->mb_cont.mc_lock =
|
||||
mb_list_clust.ml_cntlst[i]->mb_cont.mc_lock = &mbuf_pcpu[i];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue