Re: [REPOST PATCH 1/2] vz: Unify vzDomObjFromDomain{Ref}

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 02.04.2018 16:21, John Ferlan wrote:
> Rather than have two API's doing different things for different
> callers, let's make one API that will always return a locked and
> ref counted object. That way, the callers will always know that
> they must call virDomainObjEndAPI and not have to decide whether
> they should call virObjectUnlock instead.
> 
> This will make things consistent with LookupByName which returns
> the locked and ref counted object.
> 
> Signed-off-by: John Ferlan <jferlan@xxxxxxxxxx>
> ---
>  src/vz/vz_driver.c | 111 ++++++++++++++++++++++++++---------------------------
>  src/vz/vz_utils.c  |  32 +--------------
>  src/vz/vz_utils.h  |   1 -
>  3 files changed, 56 insertions(+), 88 deletions(-)
> 

Reviewed-by: Nikolay Shirokovskiy <nshirokovskiy@xxxxxxxxxxxxx>

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux