Re: [libvirt] [PATCH 3/5] libvirtd: Alter refcnt processing for domain server objects

2017-11-16 Thread Erik Skultety
On Wed, Nov 15, 2017 at 05:59:39PM -0500, John Ferlan wrote: > > > On 11/14/2017 09:17 AM, Erik Skultety wrote: > > On Sun, Nov 12, 2017 at 09:46:48AM -0500, John Ferlan wrote: > >> > >> [...] > >> > >>> Now the actual review. > >>> virNetDaemonAddServer is only used when spawning a new daemon or s

Re: [libvirt] [PATCH 3/5] libvirtd: Alter refcnt processing for domain server objects

2017-11-15 Thread John Ferlan
On 11/14/2017 09:17 AM, Erik Skultety wrote: > On Sun, Nov 12, 2017 at 09:46:48AM -0500, John Ferlan wrote: >> >> [...] >> >>> Now the actual review. >>> virNetDaemonAddServer is only used when spawning a new daemon or setting up >>> LXC >>> controller. The function essentially does: >>> >>> loc

Re: [libvirt] [PATCH 3/5] libvirtd: Alter refcnt processing for domain server objects

2017-11-14 Thread Erik Skultety
On Sun, Nov 12, 2017 at 09:46:48AM -0500, John Ferlan wrote: > > [...] > > > Now the actual review. > > virNetDaemonAddServer is only used when spawning a new daemon or setting up > > LXC > > controller. The function essentially does: > > > > lock(@dmn) > > hash_table_add(@srv) > > ref(@sr

Re: [libvirt] [PATCH 3/5] libvirtd: Alter refcnt processing for domain server objects

2017-11-14 Thread Erik Skultety
On Fri, Nov 10, 2017 at 05:41:51PM -0500, John Ferlan wrote: > > > On 11/10/2017 10:08 AM, Erik Skultety wrote: > > On Tue, Nov 07, 2017 at 09:39:54PM -0500, John Ferlan wrote: > >> Whether the @srv/@srvAdm is added to the dmn->servers list or not, > >> the reference kept for the allocation can be

Re: [libvirt] [PATCH 3/5] libvirtd: Alter refcnt processing for domain server objects

2017-11-12 Thread John Ferlan
[...] > Now the actual review. > virNetDaemonAddServer is only used when spawning a new daemon or setting up > LXC > controller. The function essentially does: > > lock(@dmn) > hash_table_add(@srv) > ref(@srv) > unlock(@dmn) > > and then you unref @dmn right upon the completion of addi

Re: [libvirt] [PATCH 3/5] libvirtd: Alter refcnt processing for domain server objects

2017-11-10 Thread John Ferlan
On 11/10/2017 10:08 AM, Erik Skultety wrote: > On Tue, Nov 07, 2017 at 09:39:54PM -0500, John Ferlan wrote: >> Whether the @srv/@srvAdm is added to the dmn->servers list or not, >> the reference kept for the allocation can be dropped leaving just the >> reference for being on the dmn->servers lis

Re: [libvirt] [PATCH 3/5] libvirtd: Alter refcnt processing for domain server objects

2017-11-10 Thread Erik Skultety
On Tue, Nov 07, 2017 at 09:39:54PM -0500, John Ferlan wrote: > Whether the @srv/@srvAdm is added to the dmn->servers list or not, > the reference kept for the allocation can be dropped leaving just the > reference for being on the dmn->servers list be the sole deciding > factor when to really free

[libvirt] [PATCH 3/5] libvirtd: Alter refcnt processing for domain server objects

2017-11-07 Thread John Ferlan
Whether the @srv/@srvAdm is added to the dmn->servers list or not, the reference kept for the allocation can be dropped leaving just the reference for being on the dmn->servers list be the sole deciding factor when to really free the associated memory. The @dmn dispose function (virNetDaemonDispose