- swap-prefetch-avoid-repeating-entry.patch removed from -mm tree

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

 



The patch titled
     swap prefetch: avoid repeating entry
has been removed from the -mm tree.  Its filename was
     swap-prefetch-avoid-repeating-entry.patch

This patch was dropped because it was folded into mm-implement-swap-prefetching.patch

------------------------------------------------------
Subject: swap prefetch: avoid repeating entry
From: Con Kolivas <kernel@xxxxxxxxxxx>

Avoid entering trickle_swap() when first initialising kprefetchd to prevent
endless loops.

Signed-off-by: Con Kolivas <kernel@xxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 mm/swap_prefetch.c |    4 ++++
 1 file changed, 4 insertions(+)

diff -puN mm/swap_prefetch.c~swap-prefetch-avoid-repeating-entry mm/swap_prefetch.c
--- a/mm/swap_prefetch.c~swap-prefetch-avoid-repeating-entry
+++ a/mm/swap_prefetch.c
@@ -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();
 
_

Patches currently in -mm which might be from kernel@xxxxxxxxxxx are

sched-add-above-background-load-function.patch
mm-implement-swap-prefetching.patch
swap-prefetch-avoid-repeating-entry.patch
mm-swap-prefetch-improvements.patch
mm-swap-prefetch-more-improvements.patch
mm-swap-prefetch-increase-aggressiveness-and-tunability.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux