diff options
author | Peter Xu <peterx@redhat.com> | 2025-06-13 10:07:54 -0400 |
---|---|---|
committer | Fabiano Rosas <farosas@suse.de> | 2025-07-11 10:37:35 -0300 |
commit | 2145f38c31e940abca19bb8a9dc0d2549a40df14 (patch) | |
tree | 7409c3f196f0953ba502f3b477d7b97fd60280c9 | |
parent | 35290df01b064134a57339b2dbfee8713f9e6d85 (diff) | |
download | qemu-2145f38c31e940abca19bb8a9dc0d2549a40df14.zip qemu-2145f38c31e940abca19bb8a9dc0d2549a40df14.tar.gz qemu-2145f38c31e940abca19bb8a9dc0d2549a40df14.tar.bz2 |
migration/bg-snapshot: Do not check for SKIP in iterator
It's not possible to happen in bg-snapshot case.
Reviewed-by: Juraj Marcin <jmarcin@redhat.com>
Link: https://lore.kernel.org/r/20250613140801.474264-5-peterx@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
-rw-r--r-- | migration/migration.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/migration/migration.c b/migration/migration.c index 4098870..e33e39a 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -3887,9 +3887,8 @@ static void *bg_migration_thread(void *opaque) while (migration_is_active()) { MigIterateState iter_state = bg_migration_iteration_run(s); - if (iter_state == MIG_ITERATE_SKIP) { - continue; - } else if (iter_state == MIG_ITERATE_BREAK) { + + if (iter_state == MIG_ITERATE_BREAK) { break; } |