Skip to contentSkip to conversation

mm-idleprio_prio.patch

PATCH In review Con Kolivas 1 participant 1 message Jun 18, 2006

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 24/29 mm-idleprio_prio.patch

Set the effective priority of idleprio tasks to that of nice 19 tasks when modifying vm reclaim behaviour.

 mm/vmscan.c |    2 ++
 1 files changed, 2 insertions(+)
mm/vmscan.c +2 -0
Index: linux-ck-dev/mm/vmscan.c
===================================================================
@@ -911,6 +911,8 @@ static int effective_sc_prio(struct task
 	if (likely(p->mm)) {
 		if (rt_task(p))
 			return -20;
+		if (idleprio_task(p))
+			return 19;
 		return task_nice(p);
 	}
 	return 0;
Signature · 1 line
-ck