From: Con Kolivas <kernel@kolivas.org>
To: Andrew Morton <akpm@linux-foundation.org>, linux-mm@kvack.org
Subject: [PATCH] swap prefetch: avoid repeating entry
Date: Wed, 7 Mar 2007 18:14:04 +1100 [thread overview]
Message-ID: <200703071814.04531.kernel@kolivas.org> (raw)
I've been unable for 4 months to find someone to test this Andrew. I'm going
to assume it fixes the problem on numa=64 (or something like that) so please
apply it.
---
Avoid entering trickle_swap() when first initialising kprefetchd to prevent
endless loops.
Signed-off-by: Con Kolivas <kernel@kolivas.org>
---
mm/swap_prefetch.c | 4 ++++
1 file changed, 4 insertions(+)
Index: linux-2.6.21-rc2-mm2/mm/swap_prefetch.c
===================================================================
--- linux-2.6.21-rc2-mm2.orig/mm/swap_prefetch.c 2007-03-06 22:23:26.000000000 +1100
+++ linux-2.6.21-rc2-mm2/mm/swap_prefetch.c 2007-03-07 18:11:50.000000000 +1100
@@ -515,6 +515,10 @@ static int kprefetchd(void *__unused)
/* Set ioprio to lowest if supported by i/o scheduler */
sys_ioprio_set(IOPRIO_WHO_PROCESS, 0, IOPRIO_CLASS_IDLE);
+ /* kprefetchd has nothing to do until it is woken up the first time */
+ set_current_state(TASK_INTERRUPTIBLE);
+ schedule();
+
do {
try_to_freeze();
--
-ck
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next reply other threads:[~2007-03-07 7:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-07 7:14 Con Kolivas [this message]
2007-03-07 7:26 ` [PATCH] swap prefetch: avoid repeating entry Andrew Morton
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=200703071814.04531.kernel@kolivas.org \
--to=kernel@kolivas.org \
--cc=akpm@linux-foundation.org \
--cc=linux-mm@kvack.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.