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/dev/iscsi/initiator | |
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/dev/iscsi/initiator')
-rw-r--r-- | sys/dev/iscsi/initiator/isc_sm.c | 4 | ||||
-rw-r--r-- | sys/dev/iscsi/initiator/isc_soc.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/iscsi/initiator/isc_sm.c b/sys/dev/iscsi/initiator/isc_sm.c index c767477..f024aef 100644 --- a/sys/dev/iscsi/initiator/isc_sm.c +++ b/sys/dev/iscsi/initiator/isc_sm.c @@ -587,7 +587,7 @@ ism_proc(void *vp) sdebug(3, "terminated"); wakeup(sp); - kthread_exit(0); + kproc_exit(0); } #if 0 @@ -782,5 +782,5 @@ ism_start(isc_session_t *sp) sp->flags |= ISC_SM_RUN; - return kthread_create(ism_proc, sp, &sp->stp, 0, 0, "ism_%d", sp->sid); + return kproc_create(ism_proc, sp, &sp->stp, 0, 0, "ism_%d", sp->sid); } diff --git a/sys/dev/iscsi/initiator/isc_soc.c b/sys/dev/iscsi/initiator/isc_soc.c index 49d530d..f5a8344 100644 --- a/sys/dev/iscsi/initiator/isc_soc.c +++ b/sys/dev/iscsi/initiator/isc_soc.c @@ -539,7 +539,7 @@ isc_soc(void *vp) mtx_unlock(&sp->io_mtx); - kthread_exit(0); + kproc_exit(0); } void @@ -572,5 +572,5 @@ isc_start_receiver(isc_session_t *sp) debug_called(8); sp->flags |= ISC_CON_RUN; - kthread_create(isc_soc, sp, &sp->soc_proc, 0, 0, "iscsi%d", sp->sid); + kproc_create(isc_soc, sp, &sp->soc_proc, 0, 0, "iscsi%d", sp->sid); } |