|
|
719b13 |
From 8814fdd9eba7a69c2b5f7df8a8db49d7c2ac8378 Mon Sep 17 00:00:00 2001
|
|
|
719b13 |
From: Juan Quintela <quintela@redhat.com>
|
|
|
719b13 |
Date: Wed, 18 May 2022 02:52:23 -0300
|
|
|
719b13 |
Subject: [PATCH 04/34] multifd: The variable is only used inside the loop
|
|
|
719b13 |
MIME-Version: 1.0
|
|
|
719b13 |
Content-Type: text/plain; charset=UTF-8
|
|
|
719b13 |
Content-Transfer-Encoding: 8bit
|
|
|
719b13 |
|
|
|
719b13 |
RH-Author: Leonardo BrĂ¡s <leobras@redhat.com>
|
|
|
719b13 |
RH-MergeRequest: 185: MSG_ZEROCOPY + Multifd @ rhel8.6
|
|
|
719b13 |
RH-Commit: [4/34] ea2b915fa5e795d88edaa3e0cf39a9f2c3cc2050
|
|
|
719b13 |
RH-Bugzilla: 2117252
|
|
|
719b13 |
RH-Acked-by: quintela1 <quintela@redhat.com>
|
|
|
719b13 |
RH-Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
|
719b13 |
RH-Acked-by: Peter Xu <peterx@redhat.com>
|
|
|
719b13 |
|
|
|
719b13 |
Signed-off-by: Juan Quintela <quintela@redhat.com>
|
|
|
719b13 |
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
|
719b13 |
(cherry picked from commit 1943c11a62bd0741e5d9fbba78404fe47ebea820)
|
|
|
719b13 |
Signed-off-by: Leonardo Bras <leobras@redhat.com>
|
|
|
719b13 |
---
|
|
|
719b13 |
migration/multifd.c | 3 +--
|
|
|
719b13 |
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
719b13 |
|
|
|
719b13 |
diff --git a/migration/multifd.c b/migration/multifd.c
|
|
|
719b13 |
index cdeffdc4c5..ce7101cf9d 100644
|
|
|
719b13 |
--- a/migration/multifd.c
|
|
|
719b13 |
+++ b/migration/multifd.c
|
|
|
719b13 |
@@ -629,7 +629,6 @@ static void *multifd_send_thread(void *opaque)
|
|
|
719b13 |
MultiFDSendParams *p = opaque;
|
|
|
719b13 |
Error *local_err = NULL;
|
|
|
719b13 |
int ret = 0;
|
|
|
719b13 |
- uint32_t flags = 0;
|
|
|
719b13 |
|
|
|
719b13 |
trace_multifd_send_thread_start(p->id);
|
|
|
719b13 |
rcu_register_thread();
|
|
|
719b13 |
@@ -652,7 +651,7 @@ static void *multifd_send_thread(void *opaque)
|
|
|
719b13 |
if (p->pending_job) {
|
|
|
719b13 |
uint32_t used = p->pages->num;
|
|
|
719b13 |
uint64_t packet_num = p->packet_num;
|
|
|
719b13 |
- flags = p->flags;
|
|
|
719b13 |
+ uint32_t flags = p->flags;
|
|
|
719b13 |
|
|
|
719b13 |
if (used) {
|
|
|
719b13 |
ret = multifd_send_state->ops->send_prepare(p, used,
|
|
|
719b13 |
--
|
|
|
719b13 |
2.35.3
|
|
|
719b13 |
|