]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Check for job being set when getting iothread stats
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 7 Nov 2019 12:43:21 +0000 (13:43 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 8 Nov 2019 15:25:51 +0000 (16:25 +0100)
commit3d46d684d15d557ddbbf8ec20f12facd828495ad
tree49da8aabc516e94b0cae160ed1c68c81b7ebbb7c
parent1faf74050f0d16f6c41686b76fea48754cdd88e8
qemu: Check for job being set when getting iothread stats

The qemuDomainGetStatsIOThread() accesses the monitor by calling
qemuDomainGetIOThreadsMon(). And it's also marked as "need
monitor" in qemuDomainGetStatsWorkers[]. However, it's not
checking if acquiring job was successful.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
src/qemu/qemu_driver.c