[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 13 Dec 2010 00:48:01 +0100 (CET)
From: Andi Kleen <andi@...stfloor.org>
To: steve@...idescorp.com, gerg@...pgear.com, ak@...ux.intel.com,
kosaki.motohiro@...fujitsu.com, akpm@...ux-foundation.org,
torvalds@...ux-foundation.org, gregkh@...e.de,
linux-kernel@...r.kernel.org, stable@...nel.org
Subject: [PATCH] [176/223] nommu: yield CPU while disposing VM
2.6.35-longterm review patch. If anyone has any objections, please let me know.
------------------
From: Steven J. Magnani <steve@...idescorp.com>
commit 04c3496152394d17e3bc2316f9731ee3e8a026bc upstream.
Depending on processor speed, page size, and the amount of memory a
process is allowed to amass, cleanup of a large VM may freeze the system
for many seconds. This can result in a watchdog timeout.
Make sure other tasks receive some service when cleaning up large VMs.
Signed-off-by: Steven J. Magnani <steve@...idescorp.com>
Cc: Greg Ungerer <gerg@...pgear.com>
Signed-off-by: Andi Kleen <ak@...ux.intel.com>
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>
Signed-off-by: Andrew Morton <akpm@...ux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@...ux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@...e.de>
---
mm/nommu.c | 1 +
1 file changed, 1 insertion(+)
Index: linux/mm/nommu.c
===================================================================
--- linux.orig/mm/nommu.c
+++ linux/mm/nommu.c
@@ -1673,6 +1673,7 @@ void exit_mmap(struct mm_struct *mm)
mm->mmap = vma->vm_next;
delete_vma_from_mm(vma);
delete_vma(mm, vma);
+ cond_resched();
}
kleave("");
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists