mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-01 10:45:49 +00:00
nommu: yield CPU while disposing VM
commit 04c3496152
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>
This commit is contained in:
parent
a9386a4f6c
commit
a9a2757490
@ -1615,6 +1615,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("");
|
||||
|
Loading…
Reference in New Issue
Block a user