]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/balloon: Avoid OOM when requesting highmem
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Wed, 19 Oct 2011 21:59:37 +0000 (17:59 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 15 Nov 2011 16:03:21 +0000 (11:03 -0500)
commit5199cee2c247b88463090fbd263d2057c04b4d05
treecee2b4270ed17a34f29daa5be65a344e485fd6cf
parent329f0b4445a181c3c1c39492ca8c07d4d8edd9fe
xen/balloon: Avoid OOM when requesting highmem

If highmem pages are requested from the balloon on a system without
highmem, the implementation of alloc_xenballooned_pages will allocate
all available memory trying to find highmem pages to return. Allow
low memory to be returned when highmem pages are requested to avoid
this loop.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/balloon.c