[PATCH v5 0/3] Make virNodeDeviceObj and virNodeDeviceObjList private

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



NB: Kept same title for consistency, but it's less true as what's left
    deals with using the now provide ObjList in order to change from a
    forward linked list to a hash lookup (thus conceivably speeding up
    searches *and* removing the need for driver level locks since the
    ObjList is self lockable.

v4: https://www.redhat.com/archives/libvir-list/2017-July/msg00034.html

Changes since v4:

  -> Patches 1-12 from v4 pushed

  -> Patch 1 (NEW) - Fix the virNodeDeviceObjListGetParentHost to not pass
                     @def, rather pass the individual names being searched
                     since the Deletion code needs to unlock the object and
                     thus @def prior to calling and that could result in
                     a possible, but improbable udevAddOneDevice change
                     event that would have replaced @def.

  -> Patch 2 (former patch 13) - No change
  -> Patch 3 (former patch 14) - No change

John Ferlan (3):
  nodedev: Fix usage of virNodeDeviceObjListGetParentHost
  nodedev: Convert virNodeDeviceObjListPtr to use hash tables
  nodedev: Remove driver locks around object list mgmt code

 src/conf/virnodedeviceobj.c          | 620 ++++++++++++++++++++++++-----------
 src/conf/virnodedeviceobj.h          |   8 +-
 src/node_device/node_device_driver.c | 101 +++---
 src/node_device/node_device_hal.c    |  16 +-
 src/node_device/node_device_udev.c   |  13 +-
 src/test/test_driver.c               |  41 ++-
 6 files changed, 523 insertions(+), 276 deletions(-)

-- 
2.9.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux