[ckpatch][24/29] mm-idleprio_prio.patch

From: Con Kolivas
Date: Sun Jun 18 2006 - 03:34:32 EST


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

Signed-off-by: Con Kolivas <kernel@xxxxxxxxxxx>

mm/vmscan.c | 2 ++
1 files changed, 2 insertions(+)

Index: linux-ck-dev/mm/vmscan.c
===================================================================
--- linux-ck-dev.orig/mm/vmscan.c 2006-06-18 15:25:07.000000000 +1000
+++ linux-ck-dev/mm/vmscan.c 2006-06-18 15:25:09.000000000 +1000
@@ -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;

--
-ck
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/