[libvirt] [PATCH v5 2/3] virtlogd: add missing netserver refcount increment on reload

Martin Kletzander mkletzan at redhat.com
Mon Oct 30 13:51:20 UTC 2017


On Mon, Oct 30, 2017 at 07:14:38AM -0400, John Ferlan wrote:
>From: Nikolay Shirokovskiy <nshirokovskiy at virtuozzo.com>
>
>After virNetDaemonAddServerPostExec call in virtlogd we should have
>netserver refcount set to 2. One goes to netdaemon servers hashtable
>and one goes to virtlogd own reference to netserver. Let's add
>missing increment in virNetDaemonAddServerPostExec itself while holding
>daemon lock.
>
>We also have to unref new extra ref after virtlockd call to
>virNetDaemonAddServerPostExec since it mgmt of the @srv would
>be assumed to be handled by the Hash Table.
>
>Signed-off-by: John Ferlan <jferlan at redhat.com>
>---
> src/locking/lock_daemon.c | 1 +
> src/rpc/virnetdaemon.c    | 1 +
> 2 files changed, 2 insertions(+)
>

ACK to this one as well.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20171030/9d496b8d/attachment-0001.sig>


More information about the libvir-list mailing list