[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/7] migration/dirtyrate: Do not unlock cpu_list lock twice
From: |
Fabiano Rosas |
Subject: |
Re: [PATCH 1/7] migration/dirtyrate: Do not unlock cpu_list lock twice |
Date: |
Tue, 28 Jan 2025 11:27:01 -0300 |
Philippe Mathieu-Daudé <philmd@linaro.org> writes:
> &qemu_cpu_list_lock is locked within the WITH_QEMU_LOCK_GUARD()
> context, then unlocked. No need to manually unlock it.
>
> Fixes: 370ed600296 ("cpu: expose qemu_cpu_list_lock for lock-guard use")
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> migration/dirtyrate.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/migration/dirtyrate.c b/migration/dirtyrate.c
> index 7c955894e47..4b94dd7c500 100644
> --- a/migration/dirtyrate.c
> +++ b/migration/dirtyrate.c
> @@ -174,7 +174,6 @@ retry:
> if (gen_id != cpu_list_generation_id_get()) {
> g_free(records);
> g_free(stat->rates);
> - cpu_list_unlock();
> goto retry;
> }
> vcpu_dirty_stat_collect(records, false);
Reviewed-by: Fabiano Rosas <farosas@suse.de>
- [PATCH 0/7] tests/qtest/migration: Update framework to allow using HVF accelerator, Philippe Mathieu-Daudé, 2025/01/28
- [PATCH 1/7] migration/dirtyrate: Do not unlock cpu_list lock twice, Philippe Mathieu-Daudé, 2025/01/28
- [PATCH 3/7] tests/qtest/migration: Initialize MigrationTestEnv::arch early, Philippe Mathieu-Daudé, 2025/01/28
- [PATCH 2/7] tests/qtest/migration: Make 'has_dirty_ring' generic, Philippe Mathieu-Daudé, 2025/01/28
- [PATCH 4/7] tests/qtest/migration: Pass accelerator arguments as machine option, Philippe Mathieu-Daudé, 2025/01/28
- [RFC PATCH 6/7] tests/qtest/migration: Run aarch64/HVF tests using GICv2, Philippe Mathieu-Daudé, 2025/01/28