summaryrefslogtreecommitdiffstats
path: root/sys/geom/journal
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2007-10-20 23:23:23 +0000
committerjulian <julian@FreeBSD.org>2007-10-20 23:23:23 +0000
commit51d643caa6efc11780104da450ee36a818170f81 (patch)
tree705ce8283c36af96cf048c799a9c02ee91af62db /sys/geom/journal
parent830ad96079c0199720ca93a683f2a4450afac014 (diff)
downloadFreeBSD-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/journal')
-rw-r--r--sys/geom/journal/g_journal.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/geom/journal/g_journal.c b/sys/geom/journal/g_journal.c
index eff8293..71ddf8c 100644
--- a/sys/geom/journal/g_journal.c
+++ b/sys/geom/journal/g_journal.c
@@ -2146,7 +2146,7 @@ try_switch:
sc->sc_worker = NULL;
wakeup(&sc->sc_worker);
mtx_unlock(&sc->sc_mtx);
- kthread_exit(0);
+ kproc_exit(0);
}
sleep:
g_journal_wait(sc, last_write);
@@ -2381,7 +2381,7 @@ g_journal_create(struct g_class *mp, struct g_provider *pp,
callout_drain(&sc->sc_callout);
}
- error = kthread_create(g_journal_worker, sc, &sc->sc_worker, 0, 0,
+ error = kproc_create(g_journal_worker, sc, &sc->sc_worker, 0, 0,
"g_journal %s", sc->sc_name);
if (error != 0) {
GJ_DEBUG(0, "Cannot create worker thread for %s.journal.",
@@ -2766,7 +2766,7 @@ g_journal_init(struct g_class *mp)
g_journal_lowmem, mp, EVENTHANDLER_PRI_FIRST);
if (g_journal_event_lowmem == NULL)
GJ_DEBUG(0, "Warning! Cannot register lowmem event.");
- error = kthread_create(g_journal_switcher, mp, NULL, 0, 0,
+ error = kproc_create(g_journal_switcher, mp, NULL, 0, 0,
"g_journal switcher");
KASSERT(error == 0, ("Cannot create switcher thread."));
}
@@ -3025,7 +3025,7 @@ g_journal_switcher(void *arg)
g_journal_switcher_state = GJ_SWITCHER_DIED;
GJ_DEBUG(1, "Switcher exiting.");
wakeup(&g_journal_switcher_state);
- kthread_exit(0);
+ kproc_exit(0);
}
if (error == 0 && g_journal_sync_requested == 0) {
GJ_DEBUG(1, "Out of cache, force switch (used=%u "
OpenPOWER on IntegriCloud