]> git.baikalelectronics.ru Git - kernel.git/commit
xen/balloon: Don't continue ballooning when BP_ECANCELED is encountered
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Tue, 7 Oct 2014 21:00:07 +0000 (17:00 -0400)
committerDavid Vrabel <david.vrabel@citrix.com>
Thu, 23 Oct 2014 15:24:01 +0000 (16:24 +0100)
commit29d5c7504e75cb19a5b1301032a609780bfcc057
treeb4091d187db6d6a083bb2d9ffd8ead27030a60ba
parentcf707b7b48540e4559958bc7587fb506b5c80cc1
xen/balloon: Don't continue ballooning when BP_ECANCELED is encountered

Commit b3a728f125e9 ("xen/balloon: cancel ballooning if adding new
memory failed") makes reserve_additional_memory() return BP_ECANCELED
when an error is encountered. This error, however, is ignored by the
caller (balloon_process()) since it is overwritten by subsequent call
to update_schedule(). This results in continuous attempts to add more
memory, all of which are likely to fail again.

We should stop trying to schedule next iteration of ballooning when
the current one has failed.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
drivers/xen/balloon.c