diff options
| author | Kevin Wolf | 2018-04-20 15:33:57 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2018-05-23 14:30:50 +0200 |
| commit | 6a74c075aca731e7e945201a4ae2336b8e328433 (patch) | |
| tree | 29eb312c2f1d00edb488a495cb9942db21946fd6 /block/commit.c | |
| parent | job: Move .complete callback to Job (diff) | |
| download | qemu-6a74c075aca731e7e945201a4ae2336b8e328433.tar.gz qemu-6a74c075aca731e7e945201a4ae2336b8e328433.tar.xz qemu-6a74c075aca731e7e945201a4ae2336b8e328433.zip | |
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.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/block/commit.c b/block/commit.c index 02a8af9127..40d97a35a5 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); |
