1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-16 15:11:52 +00: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:
Don Lewis 2003-12-07 21:53:41 +00:00
parent e21afc60bf
commit 50105bcf1a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=123263
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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];