diff options
author | Wei Yang <richardw.yang@linux.intel.com> | 2019-05-28 09:47:02 +0800 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2019-06-05 12:42:39 +0200 |
commit | 7d4eaace468c6c622a815eec04a49152bbcc6b10 (patch) | |
tree | 328b9090770d04377e8e685c7afbe216de3de8bc | |
parent | 47fbad45d47af8af784bb12a5719489edcd89b4c (diff) | |
download | qemu-7d4eaace468c6c622a815eec04a49152bbcc6b10.zip |
migration/ram.c: MultiFDSendParams.sem_sync is not really used
Besides init and destroy, MultiFDSendParams.sem_sync is not really used.
Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
-rw-r--r-- | migration/ram.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/migration/ram.c b/migration/ram.c index 4c60869226..4c15f6fda1 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -661,8 +661,6 @@ typedef struct { uint64_t num_packets; /* pages sent through this channel */ uint64_t num_pages; - /* syncs main thread and channels */ - QemuSemaphore sem_sync; } MultiFDSendParams; typedef struct { @@ -1027,7 +1025,6 @@ void multifd_save_cleanup(void) p->c = NULL; qemu_mutex_destroy(&p->mutex); qemu_sem_destroy(&p->sem); - qemu_sem_destroy(&p->sem_sync); g_free(p->name); p->name = NULL; multifd_pages_clear(p->pages); @@ -1201,7 +1198,6 @@ int multifd_save_setup(void) qemu_mutex_init(&p->mutex); qemu_sem_init(&p->sem, 0); - qemu_sem_init(&p->sem_sync, 0); p->quit = false; p->pending_job = 0; p->id = i; |