]> git.proxmox.com Git - mirror_qemu.git/commit - blockjob.c
blockjob: Factor out block_job_remove_all_bdrv()
authorKevin Wolf <kwolf@redhat.com>
Tue, 28 Feb 2017 11:45:58 +0000 (12:45 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 28 Feb 2017 19:40:37 +0000 (20:40 +0100)
commitbbc02b90bcba371818dbffec89933072f9406945
treee8c4b9b1e495a5bdf90c9034a6303d57a683da83
parent3e44c8e08a4b84ec1f4f1eb249d33005bb9cf572
blockjob: Factor out block_job_remove_all_bdrv()

In some cases, we want to remove op blockers on intermediate nodes
before the whole block job transaction has completed (because they block
restoring the final graph state during completion). Provide a function
for this.

The whole block job lifecycle is a bit messed up and it's hard to
actually do all things in the right order, but I'll leave simplifying
this for another day.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Acked-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
blockjob.c
include/block/blockjob.h