diff options
author | Kevin Wolf <kwolf@redhat.com> | 2017-05-04 18:52:37 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2017-05-11 12:08:24 +0200 |
commit | 4417ab7adf1613799054be5afedf810fc2524ee8 (patch) | |
tree | 07b0be1c2077c7eecddab8e36fe4af21140b43d7 /qmp.c | |
parent | ace21a58751824f9a3d399e332317233e880de3a (diff) |
block: New BdrvChildRole.activate() for blk_resume_after_migration()
Instead of manually calling blk_resume_after_migration() in migration
code after doing bdrv_invalidate_cache_all(), integrate the BlockBackend
activation with cache invalidation into a single function. This is
achieved with a new callback in BdrvChildRole that is called by
bdrv_invalidate_cache_all().
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'qmp.c')
-rw-r--r-- | qmp.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -207,12 +207,6 @@ void qmp_cont(Error **errp) return; } - blk_resume_after_migration(&local_err); - if (local_err) { - error_propagate(errp, local_err); - return; - } - if (runstate_check(RUN_STATE_INMIGRATE)) { autostart = 1; } else { |