]> git.ipfire.org Git - thirdparty/qemu.git/commit - blockjob.c
job: Move coroutine and related code to Job
authorKevin Wolf <kwolf@redhat.com>
Fri, 13 Apr 2018 15:31:02 +0000 (17:31 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 23 May 2018 12:30:50 +0000 (14:30 +0200)
commitda01ff7f38f52791f93fc3ca59afcfbb220f15af
tree74010498c6229085ce3f2cc2184168aec5fb99f8
parent1908a5590c7d214b1b6886bc19b81076fb65cec9
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>
14 files changed:
block/backup.c
block/commit.c
block/mirror.c
block/replication.c
block/stream.c
blockdev.c
blockjob.c
include/block/blockjob.h
include/block/blockjob_int.h
include/qemu/job.h
job.c
tests/test-bdrv-drain.c
tests/test-blockjob-txn.c
tests/test-blockjob.c