]> xenbits.xensource.com Git - libvirt.git/commit
qemu: blockjob: Consume new block job state in the processing function
authorPeter Krempa <pkrempa@redhat.com>
Mon, 26 Nov 2018 14:29:55 +0000 (15:29 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 17 Jan 2019 16:12:50 +0000 (17:12 +0100)
commitc257352797a8367d8f03b2901e7b9175cc907156
tree7b1cca2a0df8204422863324c2eab4a8e66adfb1
parent8ca9fcec24a3ddc5207a7e135f1d11d0b21e0b89
qemu: blockjob: Consume new block job state in the processing function

The processing function modifies the job state so it should make sure
that the variable holding the new state is cleared properly and not the
caller. The caller should only deal with the job state and not the
transition that happened.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_blockjob.c