qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: Zhang Chen <chen.zhang@intel.com>
Cc: qemu-dev <qemu-devel@nongnu.org>, Juan Quintela <quintela@redhat.com>
Subject: Re: [PATCH 1/3] migration/migration.c: Add missed default error handler for migration state
Date: Wed, 19 Jan 2022 17:52:05 +0000	[thread overview]
Message-ID: <YehPxVQn8AuC0gut@work-vm> (raw)
In-Reply-To: <20211231055935.1878503-2-chen.zhang@intel.com>

* Zhang Chen (chen.zhang@intel.com) wrote:
> In the migration_completion() no other status is expected, for
> example MIGRATION_STATUS_CANCELLING, MIGRATION_STATUS_CANCELLED, etc.
> 
> Signed-off-by: Zhang Chen <chen.zhang@intel.com>

I think you're right;

Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>

 however, did you actually see this trigger in a different state?

Dave
> ---
>  migration/migration.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/migration/migration.c b/migration/migration.c
> index 0652165610..2afa77da03 100644
> --- a/migration/migration.c
> +++ b/migration/migration.c
> @@ -3205,7 +3205,7 @@ static void migration_completion(MigrationState *s)
>          qemu_mutex_unlock_iothread();
>  
>          trace_migration_completion_postcopy_end_after_complete();
> -    } else if (s->state == MIGRATION_STATUS_CANCELLING) {
> +    } else {
>          goto fail;
>      }
>  
> -- 
> 2.25.1
> 
-- 
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK



  reply	other threads:[~2022-01-19 17:54 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-31  5:59 [PATCH 0/3] Some minor fixes for migration states Zhang Chen
2021-12-31  5:59 ` [PATCH 1/3] migration/migration.c: Add missed default error handler for migration state Zhang Chen
2022-01-19 17:52   ` Dr. David Alan Gilbert [this message]
2022-01-20 14:55     ` Zhang, Chen
2022-01-26 19:23   ` Juan Quintela
2021-12-31  5:59 ` [PATCH 2/3] migration/migration.c: Avoid COLO boot in postcopy migration Zhang Chen
2022-01-19 19:40   ` Dr. David Alan Gilbert
2022-01-20 14:53     ` Zhang, Chen
2022-01-26 19:30   ` Juan Quintela
2022-01-27  2:03     ` Zhang, Chen
2021-12-31  5:59 ` [PATCH 3/3] migration/migration.c: Remove the MIGRATION_STATUS_ACTIVE when migration finished Zhang Chen
2022-01-26 19:35   ` Juan Quintela
2022-01-19 14:45 ` [PATCH 0/3] Some minor fixes for migration states Zhang, Chen

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=YehPxVQn8AuC0gut@work-vm \
    --to=dgilbert@redhat.com \
    --cc=chen.zhang@intel.com \
    --cc=qemu-devel@nongnu.org \
    --cc=quintela@redhat.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).