[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/2] migration: Add a file_error argument to close_return_pat
From: |
Fabiano Rosas |
Subject: |
Re: [PATCH 1/2] migration: Add a file_error argument to close_return_path_on_source() |
Date: |
Fri, 02 Feb 2024 11:30:40 -0300 |
Cédric Le Goater <clg@redhat.com> writes:
> close_return_path_on_source() retrieves the migration error from the
> the QEMUFile '->to_dst_file' to know if a shutdown is required to exit
> the return-path thread. However, in migrate_fd_cleanup(), '->to_dst_file'
> is cleaned up before calling close_return_path_on_source() and the
> shutdown is never performed, leaving the source and destination
> waiting for an event to occur.
Isn't this just missing qemu_file_shutdown() at migrate_fd_cleanup?
if (s->to_dst_file) {
...
migration_ioc_unregister_yank_from_file(tmp);
+ qemu_file_shutdown(tmp);
qemu_fclose(tmp);
}
Re: [PATCH 0/2] migration: Fix return-path thread exit, Peter Xu, 2024/02/02