mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
We don't need to hold Giant to create the worker kthread.
This commit is contained in:
parent
97d2ca7830
commit
3aa5a3ad90
1 changed files with 0 additions and 2 deletions
|
|
@ -185,11 +185,9 @@ g_bde_create_geom(struct gctl_req *req, struct g_class *mp, struct g_provider *p
|
|||
TAILQ_INIT(&sc->freelist);
|
||||
TAILQ_INIT(&sc->worklist);
|
||||
mtx_init(&sc->worklist_mutex, "g_bde_worklist", NULL, MTX_DEF);
|
||||
mtx_lock(&Giant);
|
||||
/* XXX: error check */
|
||||
kthread_create(g_bde_worker, gp, &sc->thread, 0, 0,
|
||||
"g_bde %s", gp->name);
|
||||
mtx_unlock(&Giant);
|
||||
pp = g_new_providerf(gp, gp->name);
|
||||
#if 0
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue