&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>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <
20250128135429.8500-2-philmd@linaro.org>
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);