xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Wei Liu <wei.liu2@citrix.com>
To: Xen-devel <xen-devel@lists.xenproject.org>
Cc: Wei Liu <wei.liu2@citrix.com>,
	Changlong Xie <xiecl.fnst@cn.fujitsu.com>,
	Ian Jackson <Ian.Jackson@eu.citrix.com>,
	Wen Congyang <wency@cn.fujitsu.com>
Subject: [PATCH 2/5] libxl: colo: simplify colo_proxy_async_wait_for_checkpoint
Date: Mon, 4 Apr 2016 18:34:06 +0100	[thread overview]
Message-ID: <1459791249-13048-3-git-send-email-wei.liu2@citrix.com> (raw)
In-Reply-To: <1459791249-13048-1-git-send-email-wei.liu2@citrix.com>

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
---
 tools/libxl/libxl_colo_save.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tools/libxl/libxl_colo_save.c b/tools/libxl/libxl_colo_save.c
index e2fdc4b..26b3afd 100644
--- a/tools/libxl/libxl_colo_save.c
+++ b/tools/libxl/libxl_colo_save.c
@@ -533,11 +533,11 @@ static void colo_proxy_async_wait_for_checkpoint(libxl__colo_save_state *css)
     if (req < 0) {
         /* some error happens */
         _exit(1);
-    } else if (!req) {
-        /* no checkpoint is needed, do a checkpoint every 5s */
-        _exit(0);
     } else {
-        /* net packets is not consistent, we need to start a checkpoint */
+        /* req == 0: no checkpoint is needed, do a checkpoint every 5s */
+        /* req > 0: net packets is not consistent, we need to start a
+         * checkpoint
+         */
         _exit(0);
     }
 }
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  parent reply	other threads:[~2016-04-04 17:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-04 17:34 [PATCH 0/5] COLO fixes Wei Liu
2016-04-04 17:34 ` [PATCH 1/5] libxc: colo: don't leak pfns and iov in send_checkpoint_dirty_pfn_list Wei Liu
2016-04-04 17:34 ` Wei Liu [this message]
2016-04-04 17:34 ` [PATCH 3/5] libxl: colo: add missing break in qemu_disk_scsi_drive_string Wei Liu
2016-04-04 17:34 ` [PATCH 4/5] libxl: colo: fix indentation of abort() Wei Liu
2016-04-04 17:34 ` [PATCH 5/5] libxl: colo: remove dead code in colo_save_setup_script_cb Wei Liu
2016-04-05  5:23 ` [PATCH 0/5] COLO fixes Changlong Xie
2016-04-06 13:42   ` Wei Liu
2016-04-06 13:51 ` Ian Jackson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1459791249-13048-3-git-send-email-wei.liu2@citrix.com \
    --to=wei.liu2@citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=wency@cn.fujitsu.com \
    --cc=xen-devel@lists.xenproject.org \
    --cc=xiecl.fnst@cn.fujitsu.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).