From: Fabiano Rosas Date: Mon, 18 Sep 2023 17:28:19 +0000 (-0300) Subject: migration: Remove redundant cleanup of postcopy_qemufile_src X-Git-Tag: v8.2.0-rc0~103 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3b101157d4651f12e6b3361af2de6bace7f9b4a;p=thirdparty%2Fqemu.git migration: Remove redundant cleanup of postcopy_qemufile_src This file is owned by the return path thread which is already doing cleanup. Reviewed-by: Peter Xu Signed-off-by: Fabiano Rosas Signed-off-by: Stefan Hajnoczi Message-ID: <20230918172822.19052-6-farosas@suse.de> --- diff --git a/migration/migration.c b/migration/migration.c index 6e094634663..4372b0fbbf5 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -1178,12 +1178,6 @@ static void migrate_fd_cleanup(MigrationState *s) qemu_fclose(tmp); } - if (s->postcopy_qemufile_src) { - migration_ioc_unregister_yank_from_file(s->postcopy_qemufile_src); - qemu_fclose(s->postcopy_qemufile_src); - s->postcopy_qemufile_src = NULL; - } - assert(!migration_is_active(s)); if (s->state == MIGRATION_STATUS_CANCELLING) {