[libvirt] [PATCH] qemu: Double mutex unlock in qemuDomainModifyDeviceFlags

Eric Blake eblake at redhat.com
Thu Jan 17 18:59:55 UTC 2013


On 01/17/2013 11:46 AM, Jiri Denemark wrote:
> On Thu, Jan 17, 2013 at 18:25:28 +0100, Viktor Mihajlovski wrote:
>> 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 at linux.vnet.ibm.com>
>> ---

> 
> ACK. The function relies on driver being locked and unlocks it in
> cleanup phase.

Pushed.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130117/c798f961/attachment-0001.sig>


More information about the libvir-list mailing list