diff options
author | Kevin Wolf <kwolf@redhat.com> | 2018-04-24 16:55:04 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2018-05-23 14:30:51 +0200 |
commit | 198c49cc8d81e8eb0df3749d395599895c3a3a76 (patch) | |
tree | de592e39154d0bbe94b9fafaf95af99c3ed2d14d /blockjob.c | |
parent | b3b5299d58bce4366c647af40374e6b063f371eb (diff) | |
download | qemu-198c49cc8d81e8eb0df3749d395599895c3a3a76.zip qemu-198c49cc8d81e8eb0df3749d395599895c3a3a76.tar.gz qemu-198c49cc8d81e8eb0df3749d395599895c3a3a76.tar.bz2 |
job: Add job_yield()
This moves block_job_yield() to the Job layer.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'blockjob.c')
-rw-r--r-- | blockjob.c | 16 |
1 files changed, 0 insertions, 16 deletions
@@ -431,22 +431,6 @@ void *block_job_create(const char *job_id, const BlockJobDriver *driver, return job; } -void block_job_yield(BlockJob *job) -{ - assert(job->job.busy); - - /* Check cancellation *before* setting busy = false, too! */ - if (job_is_cancelled(&job->job)) { - return; - } - - if (!job_should_pause(&job->job)) { - job_do_yield(&job->job, -1); - } - - job_pause_point(&job->job); -} - void block_job_iostatus_reset(BlockJob *job) { if (job->iostatus == BLOCK_DEVICE_IO_STATUS_OK) { |