From owner-p4-projects@FreeBSD.ORG Sat Sep 11 13:04:25 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id E165D16A4D0; Sat, 11 Sep 2004 13:04:24 +0000 (GMT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B6D6316A4CE for ; Sat, 11 Sep 2004 13:04:24 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id AEE0643D31 for ; Sat, 11 Sep 2004 13:04:24 +0000 (GMT) (envelope-from julian@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i8BD4ORW095074 for ; Sat, 11 Sep 2004 13:04:24 GMT (envelope-from julian@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i8BD4ORR095071 for perforce@freebsd.org; Sat, 11 Sep 2004 13:04:24 GMT (envelope-from julian@freebsd.org) Date: Sat, 11 Sep 2004 13:04:24 GMT Message-Id: <200409111304.i8BD4ORR095071@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to julian@freebsd.org using -f From: Julian Elischer To: Perforce Change Reviews Subject: PERFORCE change 61353 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Sep 2004 13:04:25 -0000 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) &&