migration: put the finish part into a new function
commit199aa6d4e445b863cc0e373496b9d0900437d8a4
authorPeter Xu <peterx@redhat.com>
Wed, 3 Jan 2018 12:20:15 +0000 (3 20:20 +0800)
committerJuan Quintela <quintela@redhat.com>
Mon, 15 Jan 2018 11:48:11 +0000 (15 12:48 +0100)
treec620b79bb91943de1892b345f1a34bfd01108668
parent2ad873057e0d7f227ed8a18f74db6f0433b32e74
migration: put the finish part into a new function

This patch only moved the last part of migration_thread() into a new
function migration_iteration_finish() to make it much shorter.  With
previous works to remove some local variables, now it's fairly easy to
do that.

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