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

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



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


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