[libvirt PATCH 48/80] qemu: Refactor qemuDomainObjSetJobPhase
Peter Krempa
pkrempa at redhat.com
Thu May 12 11:18:12 UTC 2022
On Tue, May 10, 2022 at 17:21:09 +0200, Jiri Denemark wrote:
> We will want to update migration phase without affecting job ownership.
> Either in the thread that already owns the job or from an event handler
> which only changes the phase (of a job no-one owns) without assuming it.
>
> Let's move the ownership change to a new qemuDomainObjStartJobPhase
> helper and let qemuDomainObjSetJobPhase set the phase without touching
> ownership.
>
> Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
> ---
> src/qemu/qemu_domainjob.c | 44 +++++++++++++++++++++++++++++++++++----
> src/qemu/qemu_domainjob.h | 3 +++
> src/qemu/qemu_migration.c | 2 +-
> 3 files changed, 44 insertions(+), 5 deletions(-)
Reviewed-by: Peter Krempa <pkrempa at redhat.com>
More information about the libvir-list
mailing list