Skip to contentSkip to conversation

O11.2int for interactivity

PATCH In review Con Kolivas 2 participants 2 messages Jul 30, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 O11.2int for interactivity

This patch backs out a little section which isn't quite right and just might in the wrong circumstances cause unfairness. Goes on top of O11.1

Con

kernel/sched.c +1 -10
@@ -1292,16 +1292,7 @@ void scheduler_tick(int user_ticks, int 
 		if (!TASK_INTERACTIVE(p) || EXPIRED_STARVING(rq)) {
 			if (!rq->expired_timestamp)
 				rq->expired_timestamp = jiffies;
-			/*
-			 * Long term interactive tasks need to completely
-			 * run out of sleep_avg to be expired, and when they
-			 * do they are put at the start of the expired array
-			 */
-			if (unlikely(p->interactive_credit && p->sleep_avg)){
-				enqueue_task(p, rq->active);
-				goto out_unlock;
-			}
-				enqueue_task(p, rq->expired);
+			enqueue_task(p, rq->expired);
 		} else
 			enqueue_task(p, rq->active);
 	} else if (p->mm && !((task_timeslice(p) - p->time_slice) %
#1 lore raw
Quoted 4 lines · Con Kolivas

This patch backs out a little section which isn't quite right and just might in the wrong circumstances cause unfairness. Goes on top of O11.1

'k, thanks. I'll do -mm2 about eight hours from now.