[libvirt] [PATCH 0/3] Introduce RW locks to virDomainObjList

Michal Privoznik mprivozn at redhat.com
Wed Jul 19 14:31:47 UTC 2017


While this is not that critical (hash tables have O(1) time complexity for
lookups), it lays down path towards making virDomainObj using RW locks instead
of mutexes. Still, in my limited testing this showed slight improvement.

Michal Privoznik (3):
  virthread: Introduce virRWLockInitPreferWriter
  virobject: Introduce virObjectRWLockable
  virdomainobjlist: Use virObjectRWLockable

 src/conf/virdomainobjlist.c |  24 ++++----
 src/libvirt_private.syms    |   4 ++
 src/util/virobject.c        | 144 ++++++++++++++++++++++++++++++++++----------
 src/util/virobject.h        |  16 +++++
 src/util/virthread.c        |  35 +++++++++++
 src/util/virthread.h        |   1 +
 6 files changed, 180 insertions(+), 44 deletions(-)

-- 
2.13.0




More information about the libvir-list mailing list