]> git.proxmox.com Git - mirror_qemu.git/commit - block/mirror.c
blockjob: add .start field
authorJohn Snow <jsnow@redhat.com>
Tue, 8 Nov 2016 06:50:36 +0000 (01:50 -0500)
committerJeff Cody <jcody@redhat.com>
Tue, 15 Nov 2016 03:47:34 +0000 (22:47 -0500)
commita7815a764c40c9dcf204f666c2d90248095376a8
tree6218069fef5d588f66950b1fd11cbfa87b043aca
parente8a40bf71d606f9f87866fb2461eaed52814b38e
blockjob: add .start field

Add an explicit start field to specify the entrypoint. We already have
ownership of the coroutine itself AND managing the lifetime of the
coroutine, let's take control of creation of the coroutine, too.

This will allow us to delay creation of the actual coroutine until we
know we'll actually start a BlockJob in block_job_start. This avoids
the sticky question of how to "un-create" a Coroutine that hasn't been
started yet.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Message-id: 1478587839-9834-4-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
include/block/blockjob_int.h