• N
    rpc,lockd: Add missing netserver refcount increment on reload · 47eb77fb
    Nikolay Shirokovskiy 提交于
    After the virNetDaemonAddServerPostExec call in virtlogd we should have
    netserver refcount set to 2. One goes to netdaemon servers hashtable
    and one goes to virt{logd,lock} own reference to netserver. Let's add
    the missing increment in virNetDaemonAddServerPostExec itself while
    holding the daemon lock.
    
    Since lockd defers management of the @srv object by the presence
    in the hash table, virLockDaemonNewPostExecRestart must Unref the
    alloc'd Ref on the @srv object done as part of virNetDaemonAddServerPostExec
    and virNetServerNewPostExecRestart processing. The virNetDaemonGetServer
    in lock_daemon main will also take a reference which is Unref'd during
    main cleanup.
    47eb77fb
virnetdaemon.c 22.3 KB