Skip to contentSkip to conversation

migration: remove not used field xfer_limit

PATCH Dr. David Alan Gilbert 2 participants 3 messages Apr 1, 2019 – May 14, 2019 3 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 20190327202421.GH2636@work-vm

A message that is not in the archive (sent off-list or not yet received): 20190401031034.GA4680@richard

#3 lore raw
Quoted 12 lines · * Wei Yang ([email protected]) wrote:
Quoted 10 lines · Dr. David Alan Gilbert
Quoted 5 lines · * Wei Yang ([email protected]) wrote:

MigrationState->xfer_limit is only set to 0 in migrate_init().

Remove this unnecessary field.

Nice; I think that field has been unneeded since 1964a397063967 just over 5 years ago :-)

Quoted 6 lines

Hi, David,

I found xfer_limit has an orphan brother, bytes_xfer.

Do you want me to send a separate patch or spin v2 to adopt these two together?

Either is fine; since we're in 4.0 freeze at the moment, either way it
wont get merged for a few weeks.

Dave

Quoted 26 lines
Quoted 26 lines
Quoted 23 lines
---
 migration/migration.c | 1 -
 migration/migration.h | 1 -
 2 files changed, 2 deletions(-)
migration/migration.c +0 -1
index e88acab53b..533c2102c7 100644
@@ -1682,7 +1682,6 @@ void migrate_init(MigrationState *s)
      * locks.
      */
     s->bytes_xfer = 0;
-    s->xfer_limit = 0;
     s->cleanup_bh = 0;
     s->to_dst_file = NULL;
     s->rp_state.from_dst_file = NULL;
migration/migration.h +0 -0
index 99e99e56bd..852eb3c4e9 100644
@@ -117,7 +117,6 @@ struct MigrationState
 
Quoted 15 lines
Quoted 11 lines
Quoted 9 lines
migration/migration.h +0 -1
     /*< public >*/
     size_t bytes_xfer;
-    size_t xfer_limit;
     QemuThread thread;
     QEMUBH *cleanup_bh;
     QEMUFile *to_dst_file;
Signature · 1 line
2.19.1

--
Dr. David Alan Gilbert / [email protected] / Manchester, UK

Signature · 2 lines
Wei Yang
Help you, Help me

--
Dr. David Alan Gilbert / [email protected] / Manchester, UK

#4 lore raw
Quoted 15 lines · Dr. David Alan Gilbert
Quoted 14 lines · * Wei Yang ([email protected]) wrote:
Quoted 10 lines · Dr. David Alan Gilbert
Quoted 5 lines · * Wei Yang ([email protected]) wrote:

MigrationState->xfer_limit is only set to 0 in migrate_init().

Remove this unnecessary field.

Nice; I think that field has been unneeded since 1964a397063967 just over 5 years ago :-)

Hi, David,

Quoted 8 lines
Quoted 4 lines

I found xfer_limit has an orphan brother, bytes_xfer.

Do you want me to send a separate patch or spin v2 to adopt these two together?

Either is fine; since we're in 4.0 freeze at the moment, either way it
wont get merged for a few weeks.

Got it, thanks :-)

Quoted 1 line

Dave

Signature · 2 lines
Wei Yang
Help you, Help me
#5 lore raw
In reply to a message not in the archive
Quoted 5 lines · * Dr. David Alan Gilbert ([email protected]) wrote:
Quoted 4 lines · * Wei Yang ([email protected]) wrote:

MigrationState->xfer_limit is only set to 0 in migrate_init().

Remove this unnecessary field.

Quoted 7 lines
Quoted 1 line

Nice; I think that field has been unneeded since 1964a397063967 just over 5 years ago :-)

Queued

Quoted 24 lines
Quoted 24 lines
---
 migration/migration.c | 1 -
 migration/migration.h | 1 -
 2 files changed, 2 deletions(-)
migration/migration.c +0 -1
index e88acab53b..533c2102c7 100644
@@ -1682,7 +1682,6 @@ void migrate_init(MigrationState *s)
      * locks.
      */
     s->bytes_xfer = 0;
-    s->xfer_limit = 0;
     s->cleanup_bh = 0;
     s->to_dst_file = NULL;
     s->rp_state.from_dst_file = NULL;
migration/migration.h +0 -0
index 99e99e56bd..852eb3c4e9 100644
@@ -117,7 +117,6 @@ struct MigrationState
 
Quoted 12 lines
Quoted 9 lines
migration/migration.h +0 -1
     /*< public >*/
     size_t bytes_xfer;
-    size_t xfer_limit;
     QemuThread thread;
     QEMUBH *cleanup_bh;
     QEMUFile *to_dst_file;
Signature · 1 line
2.19.1

--
Dr. David Alan Gilbert / [email protected] / Manchester, UK

--
Dr. David Alan Gilbert / [email protected] / Manchester, UK