diff options
author | Wei Yang <richardw.yang@linux.intel.com> | 2019-10-11 16:50:50 +0800 |
---|---|---|
committer | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2019-10-11 15:02:06 +0100 |
commit | aff66d2ef024372a27761959b46a306a6ab92f47 (patch) | |
tree | ecf87330b2052ebe98935c0696648f242484a981 | |
parent | 9985e1f48db7449421dafdc22d275551072f0a06 (diff) | |
download | qemu-aff66d2ef024372a27761959b46a306a6ab92f47.zip qemu-aff66d2ef024372a27761959b46a306a6ab92f47.tar.gz qemu-aff66d2ef024372a27761959b46a306a6ab92f47.tar.bz2 |
migration/multifd: pages->used would be cleared when attach to multifd_send_state
When we found an available channel in multifd_send_pages(), its
pages->used is cleared and then attached to multifd_send_state.
It is not necessary to do this twice.
Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
Message-Id: <20191011085050.17622-5-richardw.yang@linux.intel.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
-rw-r--r-- | migration/ram.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/migration/ram.c b/migration/ram.c index 963e795..5078f94 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -1129,7 +1129,6 @@ static void *multifd_send_thread(void *opaque) p->flags = 0; p->num_packets++; p->num_pages += used; - p->pages->used = 0; qemu_mutex_unlock(&p->mutex); trace_multifd_send(p->id, packet_num, used, flags, |