svn commit: r264407 - head/sys/cam/ctl
Alexander Motin
mav at FreeBSD.org
Sun Apr 13 11:10:37 UTC 2014
Author: mav
Date: Sun Apr 13 11:10:36 2014
New Revision: 264407
URL: http://svnweb.freebsd.org/changeset/base/264407
Log:
Join CTL worker threads into one process for convenience.
Report their idle state as "-".
Modified:
head/sys/cam/ctl/ctl.c
Modified: head/sys/cam/ctl/ctl.c
==============================================================================
--- head/sys/cam/ctl/ctl.c Sun Apr 13 11:08:57 2014 (r264406)
+++ head/sys/cam/ctl/ctl.c Sun Apr 13 11:10:36 2014 (r264407)
@@ -1112,8 +1112,8 @@ ctl_init(void)
}
for (i = 0; i < worker_threads; i++) {
- error = kproc_create(ctl_work_thread, softc, &softc->work_thread, 0, 0,
- "ctl_thrd%d", i);
+ error = kproc_kthread_add(ctl_work_thread, softc,
+ &softc->work_thread, NULL, 0, 0, "ctl", "work%d", i);
if (error != 0) {
printf("error creating CTL work thread!\n");
mtx_lock(&softc->ctl_lock);
@@ -13380,7 +13380,7 @@ ctl_work_thread(void *arg)
/* XXX KDM use the PDROP flag?? */
/* Sleep until we have something to do. */
- mtx_sleep(softc, &softc->ctl_lock, PRIBIO, "ctl_work", 0);
+ mtx_sleep(softc, &softc->ctl_lock, PRIBIO, "-", 0);
/* Back to the top of the loop to see what woke us up. */
continue;
More information about the svn-src-head
mailing list