Date: Sat, 1 Jul 2006 07:31:35 GMT From: Chris Jones <cdjones@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 100385 for review Message-ID: <200607010731.k617VZsB046052@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=100385 Change 100385 by cdjones@cdjones-impulse on 2006/07/01 07:30:58 Reduce console output's obnoxiousness, remove dead code. Affected files ... .. //depot/projects/soc2006/cdjones_jail/src/sys/kern/kern_jail.c#8 edit Differences ... ==== //depot/projects/soc2006/cdjones_jail/src/sys/kern/kern_jail.c#8 (text+ko) ==== @@ -99,18 +99,14 @@ struct prison *pr; pr = arg; - printf("Starting jail scheduler for JID %d\n", pr->pr_id); - for (;;) { if (pr->pr_scheduler_flags & J_SCHED_TD_DIE) break; - printf("jsched: foo\n"); - - tsleep(pr, 0, '-', hz); + /* Scheduling stuff goes here. */ + tsleep(pr, 0, "-", hz); } - printf("Killing jail scheduler for JID %d\n", pr->pr_id); pr->pr_scheduler_flags = J_SCHED_TD_DEAD; kthread_exit(0); } @@ -129,15 +125,9 @@ struct prison *pr, *tpr; struct jail j; struct jail_attach_args jaa; + struct proc *j_sched_proc; int vfslocked, error, tryprid; - static struct proc *j_sched_proc; - /* static struct kproc_desc *j_sched_kp = { - "j_sched", - jsched_dummy, - &j_sched_proc - }; */ - error = copyin(uap->jail, &j, sizeof(j)); if (error) return (error); @@ -192,7 +182,7 @@ /* TODO #ifdef SCHED_HIER */ pr->pr_scheduler_flags = J_SCHED_TD_ACTIVE; - if (kthread_create(jsched_td, pr, (void *) j_sched_proc, 0, 0, "jsched '%d'", pr->pr_id)) + if (kthread_create(jsched_td, pr, (void *) j_sched_proc, 0, 0, "jsched %d", pr->pr_id)) goto e_dropprref; KASSERT(j_sched_proc != NULL, ("NULL j_sched_proc")); pr->pr_scheduler = j_sched_proc;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607010731.k617VZsB046052>