PERFORCE change 61353 for review
Julian Elischer
julian at FreeBSD.org
Sat Sep 11 06:04:25 PDT 2004
http://perforce.freebsd.org/chv.cgi?CH=61353
Change 61353 by julian at julian_ref on 2004/09/11 13:03:54
EEK! don't preempt us if we are on the sleepq but running?
they both use the same linkage element.
Affected files ...
.. //depot/projects/nsched/sys/kern/kern_switch.c#17 edit
Differences ...
==== //depot/projects/nsched/sys/kern/kern_switch.c#17 (text+ko) ====
@@ -539,7 +539,7 @@
pri = td->td_priority;
cpri = ctd->td_priority;
if (pri >= cpri || cold /* || dumping */ || TD_IS_INHIBITED(ctd) ||
- td->td_kse->ke_state != KES_THREAD)
+ td->td_kse->ke_state != KES_THREAD || TD_ON_SLEEPQ(ctd))
return (0);
#ifndef FULL_PREEMPTION
if (!(pri >= PRI_MIN_ITHD && pri <= PRI_MAX_ITHD) &&
More information about the p4-projects
mailing list