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