summaryrefslogtreecommitdiff
path: root/blockjob.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-10-18 16:49:27 +0200
committerKevin Wolf <kwolf@redhat.com>2012-10-24 10:26:22 +0200
commit3bd293c3fdc8b4052b9fc357e0b28cba20e73099 (patch)
tree0c97ad7b3ca6ec2aa7cbde34fd5b1fb4bade299b /blockjob.c
parent44c7ca5ebfb20c8086ac78f72a1bc6566828f956 (diff)
downloadqemu-3bd293c3fdc8b4052b9fc357e0b28cba20e73099.tar.gz
qemu-3bd293c3fdc8b4052b9fc357e0b28cba20e73099.tar.bz2
qemu-3bd293c3fdc8b4052b9fc357e0b28cba20e73099.zip
iostatus: forward block_job_iostatus_reset to block job
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'blockjob.c')
-rw-r--r--blockjob.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/blockjob.c b/blockjob.c
index fbb7e1cd58..cda12c6933 100644
--- a/blockjob.c
+++ b/blockjob.c
@@ -142,6 +142,9 @@ bool block_job_is_cancelled(BlockJob *job)
void block_job_iostatus_reset(BlockJob *job)
{
job->iostatus = BLOCK_DEVICE_IO_STATUS_OK;
+ if (job->job_type->iostatus_reset) {
+ job->job_type->iostatus_reset(job);
+ }
}
struct BlockCancelData {