All of lore.kernel.org
 help / color / mirror / Atom feed
* + nommu-yield-cpu-while-disposing-vm.patch added to -mm tree
@ 2010-11-16 20:26 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2010-11-16 20:26 UTC (permalink / raw)
  To: mm-commits; +Cc: steve, gerg, stable


The patch titled
     nommu: yield CPU while disposing VM
has been added to the -mm tree.  Its filename is
     nommu-yield-cpu-while-disposing-vm.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: nommu: yield CPU while disposing VM
From: "Steven J. Magnani" <steve@digidescorp.com>

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>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 mm/nommu.c |    1 +
 1 file changed, 1 insertion(+)

diff -puN mm/nommu.c~nommu-yield-cpu-while-disposing-vm mm/nommu.c
--- a/mm/nommu.c~nommu-yield-cpu-while-disposing-vm
+++ a/mm/nommu.c
@@ -1717,6 +1717,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("");
_

Patches currently in -mm which might be from steve@digidescorp.com are

nommu-yield-cpu-while-disposing-vm.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-11-16 20:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-16 20:26 + nommu-yield-cpu-while-disposing-vm.patch added to -mm tree akpm

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.