diff options
| author | Stefan Hajnoczi | 2016-06-16 18:56:22 +0200 |
|---|---|---|
| committer | Stefan Hajnoczi | 2016-06-20 12:44:12 +0200 |
| commit | 17bd51f936ac0719ef7a93fb77e30313b55c83b5 (patch) | |
| tree | 3885a7878db5ad84a4f85090ce94135ed723bdd0 /blockdev.c | |
| parent | block: process before_write_notifiers in bdrv_co_discard (diff) | |
| download | qemu-17bd51f936ac0719ef7a93fb77e30313b55c83b5.tar.gz qemu-17bd51f936ac0719ef7a93fb77e30313b55c83b5.tar.xz qemu-17bd51f936ac0719ef7a93fb77e30313b55c83b5.zip | |
blockjob: move iostatus reset out of block_job_enter()
The QMP block-job-resume command and cancellation may want to reset the
job's iostatus. The next patches add a user who does not want to reset
iostatus so move it up to block_job_enter() callers.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1466096189-6477-2-git-send-email-stefanha@redhat.com
Diffstat (limited to 'blockdev.c')
| -rw-r--r-- | blockdev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/blockdev.c b/blockdev.c index c9a0068cd6..7299312632 100644 --- a/blockdev.c +++ b/blockdev.c @@ -3811,6 +3811,7 @@ void qmp_block_job_resume(const char *device, Error **errp) job->user_paused = false; trace_qmp_block_job_resume(job); + block_job_iostatus_reset(job); block_job_resume(job); aio_context_release(aio_context); } |
