]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
vmware balloon: clamp number of collected non-balloonable pages
authorDmitry Torokhov <dtor@vmware.com>
Fri, 4 Jun 2010 21:14:52 +0000 (14:14 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Jul 2010 18:22:41 +0000 (11:22 -0700)
commit387767af889d9465ce56bf72ee47c00dd37dad08
tree8c2b612acaec083f070ef1e6e95a4504c583cbe8
parent997e6f9cc4ccc93dc827fe6ea096f48df179c670
vmware balloon: clamp number of collected non-balloonable pages

commit 55adaa495edc429be84399f83df80dfb7f36598b upstream.

Limit number of accumulated non-balloonable pages during inflation cycle,
otherwise there is a chance we will be spinning and growing the list
forever.  This happens during torture tests when balloon target changes
while we are in the middle of inflation cycle and monitor starts refusing
to lock pages (since they are not needed anymore).

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
Acked-by: Bhavesh Davda <bhavesh@vmware.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>
drivers/misc/vmware_balloon.c