[libvirt PATCH v2 00/10] Automatic mutex management - part 3

Tim Wiederhake twiederh at redhat.com
Fri Mar 4 17:28:30 UTC 2022


Use the recently implemented VIR_LOCK_GUARD and VIR_WITH_MUTEX_LOCK_GUARD
to simplify mutex management.

v1: https://listman.redhat.com/archives/libvir-list/2022-February/msg00674.html

Changed since v1:
* Removed locking / unlocking in storage driver initialization and cleanup
  instead of working around the issue of the lifetime of the mutex.

Tim Wiederhake (10):
  test: Use automatic mutex management
  openvz: Use automatic mutex management
  remote_daemon_dispatch: Use automatic mutex management
  netdev: Use automatic mutex management
  nodesuspend: Use automatic mutex management
  admin: Use automatic mutex management
  esx_stream: Use automatic mutex management
  esx_vi: Use automatic mutex management
  storage: Removing mutex locking in initialization and cleanup
  storage: Use automatic mutex management

 src/admin/admin_server_dispatch.c   |   3 +-
 src/esx/esx_stream.c                |  65 ++++------
 src/esx/esx_vi.c                    | 109 +++++++---------
 src/openvz/openvz_driver.c          |  91 +++++---------
 src/remote/remote_daemon_dispatch.c | 187 +++++++++-------------------
 src/storage/storage_driver.c        |  32 ++---
 src/test/test_driver.c              |  15 +--
 src/util/virnetdev.c                |  20 ++-
 src/util/virnodesuspend.c           |  54 +++-----
 9 files changed, 193 insertions(+), 383 deletions(-)

-- 
2.31.1





More information about the libvir-list mailing list