diff options
author | julian <julian@FreeBSD.org> | 2007-10-20 23:23:23 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2007-10-20 23:23:23 +0000 |
commit | 51d643caa6efc11780104da450ee36a818170f81 (patch) | |
tree | 705ce8283c36af96cf048c799a9c02ee91af62db /sys/geom/bde | |
parent | 830ad96079c0199720ca93a683f2a4450afac014 (diff) | |
download | FreeBSD-src-51d643caa6efc11780104da450ee36a818170f81.zip FreeBSD-src-51d643caa6efc11780104da450ee36a818170f81.tar.gz |
Rename the kthread_xxx (e.g. kthread_create()) calls
to kproc_xxx as they actually make whole processes.
Thos makes way for us to add REAL kthread_create() and friends
that actually make theads. it turns out that most of these
calls actually end up being moved back to the thread version
when it's added. but we need to make this cosmetic change first.
I'd LOVE to do this rename in 7.0 so that we can eventually MFC the
new kthread_xxx() calls.
Diffstat (limited to 'sys/geom/bde')
-rw-r--r-- | sys/geom/bde/g_bde.c | 2 | ||||
-rw-r--r-- | sys/geom/bde/g_bde_work.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/geom/bde/g_bde.c b/sys/geom/bde/g_bde.c index 90aaf7a4..696c70f 100644 --- a/sys/geom/bde/g_bde.c +++ b/sys/geom/bde/g_bde.c @@ -183,7 +183,7 @@ g_bde_create_geom(struct gctl_req *req, struct g_class *mp, struct g_provider *p TAILQ_INIT(&sc->worklist); mtx_init(&sc->worklist_mutex, "g_bde_worklist", NULL, MTX_DEF); /* XXX: error check */ - kthread_create(g_bde_worker, gp, &sc->thread, 0, 0, + kproc_create(g_bde_worker, gp, &sc->thread, 0, 0, "g_bde %s", gp->name); pp = g_new_providerf(gp, gp->name); #if 0 diff --git a/sys/geom/bde/g_bde_work.c b/sys/geom/bde/g_bde_work.c index 9a653e3..fceb865 100644 --- a/sys/geom/bde/g_bde_work.c +++ b/sys/geom/bde/g_bde_work.c @@ -664,7 +664,7 @@ g_bde_worker(void *arg) mtx_unlock(&sc->worklist_mutex); sc->dead = 2; wakeup(sc); - kthread_exit(0); + kproc_exit(0); } /* |