All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xen/balloon: cancel ballooning if adding new memory failed
@ 2014-09-01 17:52 David Vrabel
  2014-09-01 22:07 ` Daniel Kiper
  2015-01-29 13:36 ` Ian Campbell
  0 siblings, 2 replies; 9+ messages in thread
From: David Vrabel @ 2014-09-01 17:52 UTC (permalink / raw)
  To: xen-devel; +Cc: Boris Ostrovsky, Daniel Kiper, David Vrabel

If the balloon driver is adding additional memory regions to the
balloon and add_memory() fails it will likely continuously fail so
cancel the balloon operation.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
---
 drivers/xen/balloon.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/xen/balloon.c b/drivers/xen/balloon.c
index 5c660c7..1e0a317 100644
--- a/drivers/xen/balloon.c
+++ b/drivers/xen/balloon.c
@@ -230,8 +230,8 @@ static enum bp_state reserve_additional_memory(long credit)
 	rc = add_memory(nid, hotplug_start_paddr, balloon_hotplug << PAGE_SHIFT);
 
 	if (rc) {
-		pr_info("%s: add_memory() failed: %i\n", __func__, rc);
-		return BP_EAGAIN;
+		pr_warn("Cannot add additional memory (%i)\n", rc);
+		return BP_ECANCELED;
 	}
 
 	balloon_hotplug -= credit;
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-01-30 12:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-01 17:52 [PATCH] xen/balloon: cancel ballooning if adding new memory failed David Vrabel
2014-09-01 22:07 ` Daniel Kiper
2014-09-02 17:23   ` David Vrabel
2015-01-29 13:36 ` Ian Campbell
2015-01-29 18:01   ` David Vrabel
2015-01-29 20:35     ` Daniel Kiper
2015-01-30 11:34     ` Ian Campbell
2015-01-30 11:53       ` David Vrabel
2015-01-30 12:03         ` Ian Campbell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.