[libvirt PATCH v3 0/2] Automatic mutex management - part 4

Tim Wiederhake posted 2 patches 2 years, 1 month ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20220317155048.51800-1-twiederh@redhat.com
src/nwfilter/nwfilter_driver.c | 94 +++++++++++++++-------------------
src/qemu/qemu_conf.c           | 63 ++++++++---------------
2 files changed, 61 insertions(+), 96 deletions(-)
[libvirt PATCH v3 0/2] Automatic mutex management - part 4
Posted by Tim Wiederhake 2 years, 1 month ago
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-March/229144.html
V2: https://listman.redhat.com/archives/libvir-list/2022-March/229329.html

Changes since V2:
* Rewrote virQEMUDriverGetCapabilities, thanks Michal!
* Added VIR_WITH_MUTEX_LOCK_GUARD to nwfilterConnectNumOfNWFilters
* Other patches were reviewed and pushed.

Tim Wiederhake (2):
  nwfilter_driver: Use automatic mutex management
  qemu_conf: Use automatic memory management

 src/nwfilter/nwfilter_driver.c | 94 +++++++++++++++-------------------
 src/qemu/qemu_conf.c           | 63 ++++++++---------------
 2 files changed, 61 insertions(+), 96 deletions(-)

-- 
2.31.1

Re: [libvirt PATCH v3 0/2] Automatic mutex management - part 4
Posted by Michal Prívozník 2 years, 1 month ago
On 3/17/22 16:50, Tim Wiederhake wrote:
> 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-March/229144.html
> V2: https://listman.redhat.com/archives/libvir-list/2022-March/229329.html
> 
> Changes since V2:
> * Rewrote virQEMUDriverGetCapabilities, thanks Michal!
> * Added VIR_WITH_MUTEX_LOCK_GUARD to nwfilterConnectNumOfNWFilters
> * Other patches were reviewed and pushed.
> 
> Tim Wiederhake (2):
>   nwfilter_driver: Use automatic mutex management
>   qemu_conf: Use automatic memory management
> 
>  src/nwfilter/nwfilter_driver.c | 94 +++++++++++++++-------------------
>  src/qemu/qemu_conf.c           | 63 ++++++++---------------
>  2 files changed, 61 insertions(+), 96 deletions(-)
> 

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>

Michal