diff options
author | Juan Quintela <quintela@redhat.com> | 2012-07-23 02:13:23 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2012-12-20 23:09:25 +0100 |
commit | edfa1af52f4c69264c5a0c38da10eb372077fba3 (patch) | |
tree | f3c770ea2f0c4cd060a3b1e6a85a2927fb8d2f3f /migration.c | |
parent | c09f4cb2b3243085a86aee3c7ed4f31c77e4db87 (diff) | |
download | qemu-edfa1af52f4c69264c5a0c38da10eb372077fba3.zip qemu-edfa1af52f4c69264c5a0c38da10eb372077fba3.tar.gz qemu-edfa1af52f4c69264c5a0c38da10eb372077fba3.tar.bz2 |
migration: make qemu_fopen_ops_buffered() return void
We want the file assignment to happen before the thread is created to
avoid locking, so we just do it before creating the thread.
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Diffstat (limited to 'migration.c')
-rw-r--r-- | migration.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/migration.c b/migration.c index e560930..5450c3b 100644 --- a/migration.c +++ b/migration.c @@ -448,7 +448,7 @@ void migrate_fd_connect(MigrationState *s) int ret; s->state = MIG_STATE_ACTIVE; - s->file = qemu_fopen_ops_buffered(s); + qemu_fopen_ops_buffered(s); DPRINTF("beginning savevm\n"); ret = qemu_savevm_state_begin(s->file, &s->params); |