diff options
author | Wei Yang <richardw.yang@linux.intel.com> | 2019-05-28 09:47:03 +0800 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2019-06-05 12:42:54 +0200 |
commit | f38d7fbc015a3745ecdbf1e0158dbc1d1b061f9f (patch) | |
tree | 3acad124fcb36c313633a57451b440a8ecfff2ec /migration | |
parent | 7d4eaace468c6c622a815eec04a49152bbcc6b10 (diff) | |
download | qemu-f38d7fbc015a3745ecdbf1e0158dbc1d1b061f9f.zip qemu-f38d7fbc015a3745ecdbf1e0158dbc1d1b061f9f.tar.gz qemu-f38d7fbc015a3745ecdbf1e0158dbc1d1b061f9f.tar.bz2 |
migration/ram.c: multifd_send_state->count 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>
Diffstat (limited to 'migration')
-rw-r--r-- | migration/ram.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/migration/ram.c b/migration/ram.c index 4c15f6f..03a9cce 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -892,8 +892,6 @@ static int multifd_recv_unfill_packet(MultiFDRecvParams *p, Error **errp) struct { MultiFDSendParams *params; - /* number of created threads */ - int count; /* array of pages to sent */ MultiFDPages_t *pages; /* syncs main thread and channels */ @@ -1171,8 +1169,6 @@ static void multifd_new_send_channel_async(QIOTask *task, gpointer opaque) p->running = true; qemu_thread_create(&p->thread, p->name, multifd_send_thread, p, QEMU_THREAD_JOINABLE); - - atomic_inc(&multifd_send_state->count); } } @@ -1188,7 +1184,6 @@ int multifd_save_setup(void) thread_count = migrate_multifd_channels(); multifd_send_state = g_malloc0(sizeof(*multifd_send_state)); multifd_send_state->params = g_new0(MultiFDSendParams, thread_count); - atomic_set(&multifd_send_state->count, 0); multifd_send_state->pages = multifd_pages_init(page_count); qemu_sem_init(&multifd_send_state->sem_sync, 0); qemu_sem_init(&multifd_send_state->channels_ready, 0); |