]> git.karo-electronics.de Git - karo-tx-linux.git/commit
nommu: yield CPU while disposing VM
authorSteven J. Magnani <steve@digidescorp.com>
Wed, 24 Nov 2010 20:56:54 +0000 (12:56 -0800)
committerAndi Kleen <ak@linux.intel.com>
Tue, 14 Dec 2010 22:40:15 +0000 (23:40 +0100)
commita28c2bb7f58fad804d4673eb37b7c0436b945f15
treee31f5e432b46a00b84262fd86ea9207dd46dbf53
parent7e8d53c0fad544ddb5f62bb6faf836ec04256608
nommu: yield CPU while disposing VM

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>
Signed-off-by: Andi Kleen <ak@linux.intel.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