Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Sep 2004 13:04:24 GMT
From:      Julian Elischer <julian@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 61353 for review
Message-ID:  <200409111304.i8BD4ORR095071@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=61353

Change 61353 by julian@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) &&



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409111304.i8BD4ORR095071>