]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: migration: Don't access disk members without lock
authorPeter Krempa <pkrempa@redhat.com>
Fri, 23 Feb 2018 08:03:49 +0000 (09:03 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 23 May 2018 11:18:23 +0000 (13:18 +0200)
commitd4e57c6f04d983ade65d98716061b0d1a0f77214
tree0a8c7cc74fcd7bce16cf7ecc37e164088358f653
parent082266bf27a83ab27ec04e610767cfc15322cfc5
qemu: migration: Don't access disk members without lock

The initiation of a synchronous block job in the NBD storage migration
code was placed after entering the monitor thus after the lock on the VM
object was unlocked. Thankfully nothing bad could happen in this
situation since the migration job prevents any disk detaches or other
modifications of the domain object.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_migration.c