]> git.ipfire.org Git - thirdparty/qemu.git/commit
migration: Fix cancel state
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Tue, 19 Feb 2019 19:59:28 +0000 (19:59 +0000)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 6 Mar 2019 10:49:17 +0000 (10:49 +0000)
commitc3c5eae6ac69d9f7d4618407aa6c8ac5edc2267c
treebe1c6a583d3b8518feee6232cee8c862e89d6808
parentb5b6b2b912bbcd3953407da938a8f969577ad3a1
migration: Fix cancel state

During a cancelled migration there's a race where the fd can
go into an error state before we get back around the migration loop
and migration_detect_error transitions from cancelling->failed.

Check for cancelled/cancelling and don't change the state.

Red Hat bug: https://bugzilla.redhat.com/show_bug.cgi?id=1608649

Fixes: b23c2ade250
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20190219195928.12289-1-dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
migration/migration.c