From: Con Kolivas <kernel@kolivas.org>
To: linux list <linux-kernel@vger.kernel.org>
Cc: ck list <ck@vds.kolivas.org>
Subject: [ckpatch][24/29] mm-idleprio_prio.patch
Date: Sun, 18 Jun 2006 17:34:57 +1000 [thread overview]
Message-ID: <200606181734.57431.kernel@kolivas.org> (raw)
Set the effective priority of idleprio tasks to that of nice 19 tasks when
modifying vm reclaim behaviour.
Signed-off-by: Con Kolivas <kernel@kolivas.org>
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
reply other threads:[~2006-06-18 7:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200606181734.57431.kernel@kolivas.org \
--to=kernel@kolivas.org \
--cc=ck@vds.kolivas.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox