aboutsummaryrefslogtreecommitdiff
path: root/block/commit.c
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2018-04-20 15:33:57 +0200
committerKevin Wolf <kwolf@redhat.com>2018-05-23 14:30:50 +0200
commit6a74c075aca731e7e945201a4ae2336b8e328433 (patch)
tree29eb312c2f1d00edb488a495cb9942db21946fd6 /block/commit.c
parent3453d97243c72988c89a0105fa9546890eae7bd4 (diff)
downloadqemu-6a74c075aca731e7e945201a4ae2336b8e328433.zip
qemu-6a74c075aca731e7e945201a4ae2336b8e328433.tar.gz
qemu-6a74c075aca731e7e945201a4ae2336b8e328433.tar.bz2
job: Move job_finish_sync() to Job
block_job_finish_sync() doesn't contain anything block job specific any more, so it can be moved to Job. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'block/commit.c')
-rw-r--r--block/commit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/block/commit.c b/block/commit.c
index 02a8af9..40d97a3 100644
--- a/block/commit.c
+++ b/block/commit.c
@@ -112,9 +112,9 @@ static void commit_complete(Job *job, void *opaque)
blk_unref(s->top);
/* If there is more than one reference to the job (e.g. if called from
- * block_job_finish_sync()), block_job_completed() won't free it and
- * therefore the blockers on the intermediate nodes remain. This would
- * cause bdrv_set_backing_hd() to fail. */
+ * job_finish_sync()), block_job_completed() won't free it and therefore
+ * the blockers on the intermediate nodes remain. This would cause
+ * bdrv_set_backing_hd() to fail. */
block_job_remove_all_bdrv(bjob);
block_job_completed(&s->common, ret);