]> xenbits.xensource.com Git - xen.git/commitdiff
libxl: events: Do not abort remus with ERROR_TIMEOUT
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 15 Jul 2015 13:35:56 +0000 (14:35 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 16 Jul 2015 15:19:07 +0000 (16:19 +0100)
When the timeout set for prompting the next remus iteration fires, we
should not treat the ERROR_TIMEDOUT as an error.

Bug in 31c836f4 "libxl: events: Permit timeouts to signal ao abort".

Reported-by: Yang Hongyang <yanghy@cn.fujitsu.com>
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Yang Hongyang <yanghy@cn.fujitsu.com>
CC: Wei Liu <wei.liu2@citrix.com>
CC: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Yang Hongyang <yanghy@cn.fujitsu.com>
tools/libxl/libxl_dom.c

index 81adb3d532673b378c011014c164a46c34a0514b..4cb247a68564dbc5f5afb1777e5ba16ba401831c 100644 (file)
@@ -2024,6 +2024,9 @@ static void remus_next_checkpoint(libxl__egc *egc, libxl__ev_time *ev,
 
     STATE_AO_GC(dss->ao);
 
+    if (rc == ERROR_TIMEDOUT) /* As intended */
+        rc = 0;
+
     /*
      * Time to checkpoint the guest again. We return 1 to libxc
      * (xc_domain_save.c). in order to continue executing the infinite loop