]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Double mutex unlock in qemuDomainModifyDeviceFlags
authorViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
Thu, 17 Jan 2013 17:25:28 +0000 (18:25 +0100)
committerEric Blake <eblake@redhat.com>
Thu, 17 Jan 2013 18:57:00 +0000 (11:57 -0700)
commit56fd513458f04e83b01e85981b2b8105c0ebf243
treea7750773228ac1a63822bf1fe4244c71a703380b
parent65fb9d49cc9caae210977934b53d87e56429407b
qemu: Double mutex unlock in qemuDomainModifyDeviceFlags

The driver mutex was unlocked in qemuDomainModifyDeviceFlags before
entering qemuDomainObjBeginJobWithDriver where it will be unlocked once
more leaving it in an undefined state. The result was that two
threads were simultaneously looking up the domain hash table during
multiple parallel device attach/detach operations.
Luckily this triggered a virHashIterationError.

Signed-off-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
src/qemu/qemu_driver.c