migration: allow cancel to unpause
commita7b36b486dd58d8f44f788a2a2efa6a4fa3b1223
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Fri, 20 Oct 2017 09:05:55 +0000 (20 10:05 +0100)
committerJuan Quintela <quintela@redhat.com>
Mon, 23 Oct 2017 16:03:32 +0000 (23 18:03 +0200)
tree8d015d810d9ee5a363899391e8aad7d3c234c628
parent94ae12cba4f18253e3cf5f9a70335e22870053b4
migration: allow cancel to unpause

If a migration_cancel is issued during the new paused state,
kick the pause_sem to get to unpause so it can cancel.

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