Re: [libvirt] [PATCH v2 3/8] util: Only have virObjectLock handle virObjectLockable

2017-08-03 Thread Michal Privoznik
On 08/01/2017 02:05 AM, John Ferlan wrote: > Now that virObjectRWLockWrite exists to handle the virObjectRWLockable > objects, let's restore virObjectLock to only handle virObjectLockable > class locks. There still exists the possibility that the input @anyobj > isn't a valid object and the

[libvirt] [PATCH v2 3/8] util: Only have virObjectLock handle virObjectLockable

2017-07-31 Thread John Ferlan
Now that virObjectRWLockWrite exists to handle the virObjectRWLockable objects, let's restore virObjectLock to only handle virObjectLockable class locks. There still exists the possibility that the input @anyobj isn't a valid object and the resource isn't truly locked, but that also exists before