From da01ff7f38f52791f93fc3ca59afcfbb220f15af Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Fri, 13 Apr 2018 17:31:02 +0200 Subject: 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 Reviewed-by: John Snow --- block/replication.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'block/replication.c') 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); -- cgit v1.1