]> xenbits.xensource.com Git - libvirt.git/commit
qemu: bulk stats: Don't access possibly blocked storage
authorPeter Krempa <pkrempa@redhat.com>
Wed, 18 May 2016 12:58:25 +0000 (14:58 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 19 May 2016 14:27:42 +0000 (16:27 +0200)
commit71d2c172edb997bae1e883b2e1bafa97d9f953a1
tree2ef7eba64edca42e9e5b22960b0f310b16d4a4a7
parent3aa5d51a9530a8737ca584b393c29297dd9bbc37
qemu: bulk stats: Don't access possibly blocked storage

If the stats for a block device can't be acquired from qemu we've
fallen back to loading them from the file on the disk in libvirt.

If qemu is not cooperating due to being stuck on an inaccessible NFS
share we would then attempt to read the files and get stuck too with
the VM object locked. All other APIs would eventually get stuck waiting
on the VM lock.

Avoid this problem by skipping the block stats if the VM is online but
the monitor did not provide any stats.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1337073
src/qemu/qemu_driver.c