[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 02/16] migration: Change qemu_file_transferred to noflush
From: |
Juan Quintela |
Subject: |
[PATCH 02/16] migration: Change qemu_file_transferred to noflush |
Date: |
Tue, 30 May 2023 14:27:59 +0200 |
We do a qemu_fclose() just after that, that also does a qemu_fflush(),
so remove one qemu_fflush().
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
migration/savevm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/migration/savevm.c b/migration/savevm.c
index f26b455764..b2199d1039 100644
--- a/migration/savevm.c
+++ b/migration/savevm.c
@@ -2952,7 +2952,7 @@ bool save_snapshot(const char *name, bool overwrite,
const char *vmstate,
goto the_end;
}
ret = qemu_savevm_state(f, errp);
- vm_state_size = qemu_file_transferred(f);
+ vm_state_size = qemu_file_transferred_noflush(f);
ret2 = qemu_fclose(f);
if (ret < 0) {
goto the_end;
--
2.40.1
- [PATCH 00/16] Next round of migration atomic counters, Juan Quintela, 2023/05/30
- [PATCH 07/16] qemu_file: total_transferred is not used anymore, Juan Quintela, 2023/05/30
- [PATCH 11/16] migration: migration_transferred_bytes() don't need the QEMUFile, Juan Quintela, 2023/05/30
- [PATCH 12/16] migration: migration_rate_limit_reset() don't need the QEMUFile, Juan Quintela, 2023/05/30
- [PATCH 14/16] migration: Use migration_transferred_bytes(), Juan Quintela, 2023/05/30
- [PATCH 15/16] migration: Remove transferred atomic counter, Juan Quintela, 2023/05/30
- [PATCH 16/16] qemu-file: Make qemu_fflush() return errors, Juan Quintela, 2023/05/30
- [PATCH 02/16] migration: Change qemu_file_transferred to noflush,
Juan Quintela <=
- [PATCH 06/16] qemu_file: Use a stat64 for qemu_file_transferred, Juan Quintela, 2023/05/30
- [PATCH 03/16] migration: Use qemu_file_transferred_noflush() for block migration., Juan Quintela, 2023/05/30
- [PATCH 13/16] qemu-file: Simplify qemu_file_get_error(), Juan Quintela, 2023/05/30
- [PATCH 05/16] qemu-file: We only call qemu_file_transferred_* on the sending side, Juan Quintela, 2023/05/30
- [PATCH 08/16] migration: Use the number of transferred bytes directly, Juan Quintela, 2023/05/30
- [PATCH 09/16] qemu_file: Remove unused qemu_file_transferred(), Juan Quintela, 2023/05/30
- [PATCH 04/16] qemu-file: Don't call qemu_fflush() for read only files, Juan Quintela, 2023/05/30