]> git.proxmox.com Git - mirror_qemu.git/commit - blockjob.c
blockjob: add block_job_start
authorJohn Snow <jsnow@redhat.com>
Tue, 8 Nov 2016 06:50:37 +0000 (01:50 -0500)
committerJeff Cody <jcody@redhat.com>
Tue, 15 Nov 2016 03:47:34 +0000 (22:47 -0500)
commit5ccac6f186e4a480074880d958760c7105cf9ba8
tree7f5f66df425b35ad18683743788ad575032cbeea
parenta7815a764c40c9dcf204f666c2d90248095376a8
blockjob: add block_job_start

Instead of automatically starting jobs at creation time via backup_start
et al, we'd like to return a job object pointer that can be started
manually at later point in time.

For now, add the block_job_start mechanism and start the jobs
automatically as we have been doing, with conversions job-by-job coming
in later patches.

Of note: cancellation of unstarted jobs will perform all the normal
cleanup as if the job had started, particularly abort and clean. The
only difference is that we will not emit any events, because the job
never actually started.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 1478587839-9834-5-git-send-email-jsnow@redhat.com
Signed-off-by: Jeff Cody <jcody@redhat.com>
block/backup.c
block/commit.c
block/mirror.c
block/stream.c
block/trace-events
blockjob.c
include/block/blockjob.h
tests/test-blockjob-txn.c