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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Con Kolivas <[email protected]>

 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux