Re: [libvirt PATCH 48/80] qemu: Refactor qemuDomainObjSetJobPhase

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
> ---
>  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@xxxxxxxxxx>




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux