Skip to content
Snippets Groups Projects
Commit 7478fb0d authored by Fabiano Rosas's avatar Fabiano Rosas Committed by Stefan Hajnoczi
Browse files

migration: Fix possible race when shutting down to_dst_file


It's not safe to call qemu_file_shutdown() on the to_dst_file without
first checking for the file's presence under the lock. The cleanup of
this file happens at postcopy_pause() and migrate_fd_cleanup() which
are not necessarily running in the same thread as migrate_fd_cancel().

Reviewed-by: default avatarPeter Xu <peterx@redhat.com>
Signed-off-by: default avatarFabiano Rosas <farosas@suse.de>
Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
Message-ID: <20230918172822.19052-5-farosas@suse.de>
parent 639decf5
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment