]> git.baikalelectronics.ru Git - kernel.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>
Wed, 16 Nov 2011 17:13:43 +0000 (12:13 -0500)
commit663524f0dfc9c00ec4c721b4e5550ee7c75fa859
tree8b514d680a2af0907705319f078d4f6ec89d03df
parent60d7c5216459148af308bc51b6c0d753982b3ff1
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