[libvirt] [PATCH] docs: more on qemu locking patterns

Eric Blake eblake at redhat.com
Wed Feb 2 16:27:40 UTC 2011


On 02/02/2011 03:52 AM, Daniel P. Berrange wrote:
> On Tue, Feb 01, 2011 at 05:37:10PM -0700, Eric Blake wrote:
>> * src/qemu/THREADS.txt: Improve documentation.
>> ---
>>
>>    qemuDomainObjExitMonitor()
>> -    - Acquires the virDomainObjPtr lock
>>      - Releases the qemuMonitorObjPtr lock
>> +    - Acquires the virDomainObjPtr lock
>>
>> But I'm wondering if that was correct, or if the code should instead
>> be swapped to match the original ordering in the documentation.
> 
> Either way doesn't matter. The lock ordering constraints only
> apply to sequences of 'lock' operations. You can 'unlock' any
> lock in any order, providing you always honour the 'lock'
> order. So changing the docs is fine.

Good to know.

> 
>>  src/qemu/THREADS.txt |  100 ++++++++++++++++++++++++++++++++++++++-----------
>>  1 files changed, 77 insertions(+), 23 deletions(-)
> 
> ACK

Thanks; pushed.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

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


More information about the libvir-list mailing list