We don't need to hold Giant to create the worker kthread.
This commit is contained in:
parent
005b272f75
commit
f5c0480119
@ -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 New Issue
Block a user