]> xenbits.xensource.com Git - libvirt.git/commit
qemuMigrationCookieAddNBD: Move monitor call out of the loop
authorPeter Krempa <pkrempa@redhat.com>
Thu, 30 Jan 2020 13:57:56 +0000 (14:57 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 31 Jan 2020 13:28:29 +0000 (14:28 +0100)
commit464345e153b805467a22fca4615350e992e6d470
tree54086a7ce7c621b4bb9bee06df1c9e67f0441b3d
parent8efeeb59a6e76fa9515deb7d3d26ae570e0fb7a7
qemuMigrationCookieAddNBD: Move monitor call out of the loop

The data is gathered only once so we can move the whole block which
fetches the data out of the loop and get rid of the logic which
prevents multiple calls.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_migration_cookie.c