qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: Wei Yang <richardw.yang@linux.intel.com>
Cc: qemu-devel@nongnu.org, quintela@redhat.com
Subject: Re: [Qemu-devel] [PATCH] migration: remove not used field xfer_limit
Date: Tue, 14 May 2019 14:31:38 +0100	[thread overview]
Message-ID: <20190514133135.GD8632@work-vm> (raw)
In-Reply-To: <20190327202421.GH2636@work-vm>

* Dr. David Alan Gilbert (dgilbert@redhat.com) wrote:
> * Wei Yang (richardw.yang@linux.intel.com) wrote:
> > MigrationState->xfer_limit is only set to 0 in migrate_init().
> > 
> > Remove this unnecessary field.
> > 
> > Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
> 
> Nice; I think that field has been unneeded since 1964a397063967
> just over 5 years ago :-)
> 
> 
> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>

Queued

> 
> > ---
> >  migration/migration.c | 1 -
> >  migration/migration.h | 1 -
> >  2 files changed, 2 deletions(-)
> > 
> > diff --git a/migration/migration.c b/migration/migration.c
> > index e88acab53b..533c2102c7 100644
> > --- a/migration/migration.c
> > +++ b/migration/migration.c
> > @@ -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;
> > diff --git a/migration/migration.h b/migration/migration.h
> > index 99e99e56bd..852eb3c4e9 100644
> > --- a/migration/migration.h
> > +++ b/migration/migration.h
> > @@ -117,7 +117,6 @@ struct MigrationState
> >  
> >      /*< public >*/
> >      size_t bytes_xfer;
> > -    size_t xfer_limit;
> >      QemuThread thread;
> >      QEMUBH *cleanup_bh;
> >      QEMUFile *to_dst_file;
> > -- 
> > 2.19.1
> > 
> --
> Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
> 
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK


      parent reply	other threads:[~2019-05-14 13:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20190326055726.10539-1-richardw.yang@linux.intel.com>
     [not found] ` <20190327202421.GH2636@work-vm>
     [not found]   ` <20190401031034.GA4680@richard>
2019-04-01  8:51     ` [Qemu-devel] [PATCH] migration: remove not used field xfer_limit Dr. David Alan Gilbert
2019-04-01 14:03       ` Wei Yang
2019-05-14 13:31   ` Dr. David Alan Gilbert [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190514133135.GD8632@work-vm \
    --to=dgilbert@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=quintela@redhat.com \
    --cc=richardw.yang@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).