| Date | Tue, 07 Dec 2010 17:00:11 -0800 | From | Greg KH <> | Subject | [234/289] nommu: yield CPU while disposing VM |
| |
2.6.36-stable review patch. If anyone has any objections, please let us know.
------------------
From: Steven J. Magnani <steve@digidescorp.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@digidescorp.com> Cc: Greg Ungerer <gerg@snapgear.com> Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
--- mm/nommu.c | 1 + 1 file changed, 1 insertion(+)
--- a/mm/nommu.c +++ b/mm/nommu.c @@ -1668,6 +1668,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("");
|