aboutsummaryrefslogtreecommitdiff
path: root/blockjob.h
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.h
parent44c7ca5ebfb20c8086ac78f72a1bc6566828f956 (diff)
downloadqemu-3bd293c3fdc8b4052b9fc357e0b28cba20e73099.zip
qemu-3bd293c3fdc8b4052b9fc357e0b28cba20e73099.tar.gz
qemu-3bd293c3fdc8b4052b9fc357e0b28cba20e73099.tar.bz2
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.h')
-rw-r--r--blockjob.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/blockjob.h b/blockjob.h
index fb2392e..3792b73 100644
--- a/blockjob.h
+++ b/blockjob.h
@@ -42,6 +42,9 @@ typedef struct BlockJobType {
/** Optional callback for job types that support setting a speed limit */
void (*set_speed)(BlockJob *job, int64_t speed, Error **errp);
+ /** Optional callback for job types that need to forward I/O status reset */
+ void (*iostatus_reset)(BlockJob *job);
+
/**
* Optional callback for job types whose completion must be triggered
* manually.
@@ -253,7 +256,8 @@ int block_job_cancel_sync(BlockJob *job);
* block_job_iostatus_reset:
* @job: The job whose I/O status should be reset.
*
- * Reset I/O status on @job.
+ * Reset I/O status on @job and on BlockDriverState objects it uses,
+ * other than job->bs.
*/
void block_job_iostatus_reset(BlockJob *job);