diff options
author | Kevin Wolf <kwolf@redhat.com> | 2018-04-13 17:31:02 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2018-05-23 14:30:50 +0200 |
commit | da01ff7f38f52791f93fc3ca59afcfbb220f15af (patch) | |
tree | 74010498c6229085ce3f2cc2184168aec5fb99f8 /block/replication.c | |
parent | 1908a5590c7d214b1b6886bc19b81076fb65cec9 (diff) | |
download | qemu-da01ff7f38f52791f93fc3ca59afcfbb220f15af.zip qemu-da01ff7f38f52791f93fc3ca59afcfbb220f15af.tar.gz qemu-da01ff7f38f52791f93fc3ca59afcfbb220f15af.tar.bz2 |
job: Move coroutine and related code to Job
This commit moves some core functions for dealing with the job coroutine
from BlockJob to Job. This includes primarily entering the coroutine
(both for the first and reentering) and yielding explicitly and at pause
points.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'block/replication.c')
-rw-r--r-- | block/replication.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/replication.c b/block/replication.c index 48148b8..9ed6e0f 100644 --- a/block/replication.c +++ b/block/replication.c @@ -576,7 +576,7 @@ static void replication_start(ReplicationState *rs, ReplicationMode mode, aio_context_release(aio_context); return; } - block_job_start(job); + job_start(&job->job); break; default: aio_context_release(aio_context); |