]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit41acb8c6ac56c3f1748eae9cabe7731d294bdf00
tree2d8b679328228141ebbcd85f792828b90f44cf54
parent46271cafbbbedd8bb33e26ede4c61418b025ef18
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