• M
    conf: Rework virDomainObjListFindByUUID to allow more concurrent APIs · feb1a4d7
    Martin Kletzander 提交于
    Currently, when there is an API that's blocking with locked domain and
    second API that's waiting in virDomainObjListFindByUUID() for the domain
    lock (with the domain list locked) no other API can be executed on any
    domain on the whole hypervisor because all would wait for the domain
    list to be locked.  This patch adds new optional approach to this in
    which the domain is only ref'd (reference counter is incremented)
    instead of being locked and is locked *after* the list itself is
    unlocked.  We might consider only ref'ing the domain in the future and
    leaving locking on particular APIs, but that's no tonight's fairy tale.
    Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
    feb1a4d7
libvirt_private.syms 50.9 KB