Laurent Vivier <lviv...@redhat.com> wrote:
> This avoids to call migrate_get_current() in the caller function
> whereas migration_cancel() already needs the pointer to the current
> migration state.
>
> Signed-off-by: Laurent Vivier <lviv...@redhat.com>

Reviewed-by: Juan Quintela <quint...@redhat.com>

queued.


>          error_setg(&err, "RAM block '%s' resized during precopy.", 
> rb->idstr);
> -        migrate_set_error(migrate_get_current(), err);
> +        migration_cancel(err);
>          error_free(err);
> -        migration_cancel();

This was already there, but it is ugly, isn't it?

Later, Juan.


Reply via email to