]> git.proxmox.com Git - mirror_qemu.git/commit - blockdev.c
blockjob: move iostatus reset out of block_job_enter()
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 16 Jun 2016 16:56:22 +0000 (17:56 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 20 Jun 2016 10:44:12 +0000 (11:44 +0100)
commit17bd51f936ac0719ef7a93fb77e30313b55c83b5
tree3885a7878db5ad84a4f85090ce94135ed723bdd0
parentec050f77a549b300ee444634bccd9ec05d134c4d
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
blockdev.c
blockjob.c