aboutsummaryrefslogtreecommitdiff
path: root/block.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 /block.c
parent44c7ca5ebfb20c8086ac78f72a1bc6566828f956 (diff)
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 'block.c')
-rw-r--r--block.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/block.c b/block.c
index ad5e2405e3..1564137fd8 100644
--- a/block.c
+++ b/block.c
@@ -4369,6 +4369,9 @@ void bdrv_iostatus_reset(BlockDriverState *bs)
{
if (bdrv_iostatus_is_enabled(bs)) {
bs->iostatus = BLOCK_DEVICE_IO_STATUS_OK;
+ if (bs->job) {
+ block_job_iostatus_reset(bs->job);
+ }
}
}