[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] libxl/remus: fix the return value of the checkpoint callback
On Wed, 2015-07-15 at 18:32 +0800, Yang Hongyang wrote: > In checkpoint callback, we wait for the interval and then start > another checkpoint, so the ERROR_TIMEDOUT should be intended > and should not treat as error. > > This patch is based on > [PATCH v8 --for 4.6 COLO 00/25] COarse-grain LOck-stepping Virtual Machines > for Non-stop Service Does that mean it won't apply to current staging? I think we probably want this fix ASAP rather than waiting for that series? > Signed-off-by: Yang Hongyang <yanghy@xxxxxxxxxxxxxx> > CC: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> > CC: Ian Campbell <Ian.Campbell@xxxxxxxxxx> > CC: Wei Liu <wei.liu2@xxxxxxxxxx> > --- > tools/libxl/libxl_remus.c | 11 +++++++---- > 1 file changed, 7 insertions(+), 4 deletions(-) > > diff --git a/tools/libxl/libxl_remus.c b/tools/libxl/libxl_remus.c > index 46dcc3c..ffc92a7 100644 > --- a/tools/libxl/libxl_remus.c > +++ b/tools/libxl/libxl_remus.c > @@ -355,11 +355,14 @@ static void remus_next_checkpoint(libxl__egc *egc, > libxl__ev_time *ev, > * (xc_domain_save.c). in order to continue executing the infinite loop > * (suspend, checkpoint, resume) in xc_domain_save(). > */ > - > - if (rc) > + if (rc == ERROR_TIMEDOUT) { > + /* This is intended, we set the timeout and start another checkpoint > */ > + libxl__xc_domain_saverestore_async_callback_done(egc, &dss->sws.shs, > 1); Please wrap this (slightly) overlong line (and probably the comment too which is borderline AFAICT). > + } else { > dss->rc = rc; > - > - libxl__xc_domain_saverestore_async_callback_done(egc, &dss->sws.shs, > !rc); > + libxl__xc_domain_saverestore_async_callback_done(egc, > + &dss->sws.shs, !rc); > + } > } > > /*---------------------- remus callbacks (restore) -----------------------*/ _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |