xen/balloon: don't alloc page while non-preemptible
authorDavid Vrabel <david.vrabel@citrix.com>
Thu, 19 Sep 2013 16:14:53 +0000 (17:14 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 24 Sep 2013 20:22:27 +0000 (16:22 -0400)
commit24f69373e212d4356268fbb1d01c5735423c300d
tree2d8b679328228141ebbcd85f792828b90f44cf54
parenta945928ea2709bc0e8e8165d33aed855a0110279
xen/balloon: don't alloc page while non-preemptible

get_balloon_scratch_page() disables preemption so we cannot call
alloc_page() in between get/put_balloon_scratch_page().  Shuffle bits
around in decrease_reservation() to avoid this.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/balloon.c