PERFORCE change 72829 for review
David Xu
davidxu at FreeBSD.org
Thu Mar 10 03:14:58 PST 2005
http://perforce.freebsd.org/chv.cgi?CH=72829
Change 72829 by davidxu at davidxu_alona on 2005/03/10 11:14:32
only call sched_fork_ksegrp with sched_lock held.
Affected files ...
.. //depot/projects/davidxu_thread/src/sys/kern/kern_thr.c#11 edit
Differences ...
==== //depot/projects/davidxu_thread/src/sys/kern/kern_thr.c#11 (text+ko) ====
@@ -163,14 +163,14 @@
td->td_proc->p_flag |= P_HADTHREADS;
newtd->td_sigmask = td->td_sigmask;
mtx_lock_spin(&sched_lock);
- if (linkkg) {
+ if (linkkg)
ksegrp_link(newkg, p);
- sched_fork_ksegrp(td, newkg);
- }
thread_link(newtd, newkg);
PROC_UNLOCK(p);
/* let the scheduler know about these things. */
+ if (linkkg)
+ sched_fork_ksegrp(td, newkg);
sched_fork_thread(td, newtd);
TD_SET_CAN_RUN(newtd);
if ((uap->flags & THR_SUSPENDED) == 0)
More information about the p4-projects
mailing list