migration: Call blk_resume_after_migration() for postcopy
commit0042fd3663662c848aaff5c65b6880e545d94b18
authorKevin Wolf <kwolf@redhat.com>
Thu, 13 Apr 2017 16:38:28 +0000 (13 18:38 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 27 Apr 2017 13:39:49 +0000 (27 15:39 +0200)
tree5029552deb8a2e7fb069b4698f7d05458afb9a91
parent9fd77f997208c0c98cbd8ec522e34fd2103f5d30
migration: Call blk_resume_after_migration() for postcopy

Commit d35ff5e6 ('block: Ignore guest dev permissions during incoming
migration') added blk_resume_after_migration() to the precopy migration
path, but neglected to add it to the duplicated code that is used for
postcopy migration. This means that the guest device doesn't request the
necessary permissions, which ultimately led to failing assertions.

Add the missing blk_resume_after_migration() to the postcopy path.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
migration/savevm.c