From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56506) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzHAO-0007jH-TN for qemu-devel@nongnu.org; Wed, 26 Oct 2016 01:54:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bzHAK-0006yc-7b for qemu-devel@nongnu.org; Wed, 26 Oct 2016 01:54:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37186) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bzHAK-0006xU-2C for qemu-devel@nongnu.org; Wed, 26 Oct 2016 01:54:20 -0400 Date: Wed, 26 Oct 2016 11:24:16 +0530 From: Amit Shah Message-ID: <20161026055416.GM1679@amit-lp.rh> References: <1476792613-11712-1-git-send-email-zhang.zhanghailiang@huawei.com> <1476792613-11712-14-git-send-email-zhang.zhanghailiang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1476792613-11712-14-git-send-email-zhang.zhanghailiang@huawei.com> Subject: Re: [Qemu-devel] [PATCH COLO-Frame (Base) v21 13/17] COLO: Introduce state to record failover process List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: zhanghailiang Cc: quintela@redhat.com, qemu-devel@nongnu.org, dgilbert@redhat.com, wency@cn.fujitsu.com, lizhijian@cn.fujitsu.com, xiecl.fnst@cn.fujitsu.com On (Tue) 18 Oct 2016 [20:10:09], zhanghailiang wrote: > When handling failover, COLO processes differently according to > the different stage of failover process, here we introduce a global > atomic variable to record the status of failover. > > We add four failover status to indicate the different stage of failover process. > You should use the helpers to get and set the value. > > Signed-off-by: zhanghailiang > Reviewed-by: Dr. David Alan Gilbert Reviewed-by: Amit Shah Amit