OSDN Git Service

migration: introduce migrate_calculate_complete
authorPeter Xu <peterx@redhat.com>
Wed, 3 Jan 2018 12:20:11 +0000 (20:20 +0800)
committerJuan Quintela <quintela@redhat.com>
Mon, 15 Jan 2018 11:48:09 +0000 (12:48 +0100)
commitcf011f082d7a2a9abfc0a257cc4de1cfcfbef24d
tree9c645267a12c13e3cc1e4ed804324a40415eb479
parent64909f974012038266a4785a33935742f1e96b84
migration: introduce migrate_calculate_complete

Generalize the calculation part when migration complete into a
function to simplify migration_thread().

Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/migration.c