Fix hanging user monitor when using balloon command
authorAdam Litke <agl@us.ibm.com>
Fri, 12 Feb 2010 20:55:56 +0000 (14:55 -0600)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 19 Feb 2010 21:32:15 +0000 (15:32 -0600)
Arghh... Adding missing S-O-B

Hi Anthony.  I wonder if there was a problem when importing my async
command handler patchset.  Since the 'balloon' command completes
immediately, it must call the completion callback before returning.
That call was missing but is added by the patch below.

Signed-off-by: Adam Litke <agl@us.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
monitor.c

index 6a64e6e218c86f10ac722fdba864b546f2b9ebf8..b1a6edccffdab15d077b8e1ffbe507d2e14bca5f 100644 (file)
--- a/monitor.c
+++ b/monitor.c
@@ -2309,6 +2309,7 @@ static int do_info_balloon(Monitor *mon, MonitorCompletion cb, void *opaque)
         return -1;
     }
 
+    cb(opaque, NULL);
     return 0;
 }