Commit 04c34961 authored by Steven J. Magnani's avatar Steven J. Magnani Committed by Linus Torvalds
Browse files

nommu: yield CPU while disposing VM

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: default avatarSteven J. Magnani <>
Cc: Greg Ungerer <>
Reviewed-by: default avatarKOSAKI Motohiro <>
Cc: <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 3a3a1af3
...@@ -1717,6 +1717,7 @@ void exit_mmap(struct mm_struct *mm) ...@@ -1717,6 +1717,7 @@ void exit_mmap(struct mm_struct *mm)
mm->mmap = vma->vm_next; mm->mmap = vma->vm_next;
delete_vma_from_mm(vma); delete_vma_from_mm(vma);
delete_vma(mm, vma); delete_vma(mm, vma);
} }
kleave(""); kleave("");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment