mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-14 21:52:18 -06:00
migration: Simplify decompress_data_with_multi_threads()
Doing a break to do another break is just confused. Just call return when we know we want to return. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Lukas Straub <lukasstraub2@web.de> Message-ID: <20230613145757.10131-14-quintela@redhat.com>
This commit is contained in:
parent
1fd03d41b8
commit
4703d1958c
1 changed files with 2 additions and 6 deletions
|
@ -481,15 +481,11 @@ void decompress_data_with_multi_threads(QEMUFile *f, void *host, int len)
|
||||||
decomp_param[idx].len = len;
|
decomp_param[idx].len = len;
|
||||||
qemu_cond_signal(&decomp_param[idx].cond);
|
qemu_cond_signal(&decomp_param[idx].cond);
|
||||||
qemu_mutex_unlock(&decomp_param[idx].mutex);
|
qemu_mutex_unlock(&decomp_param[idx].mutex);
|
||||||
break;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (idx < thread_count) {
|
|
||||||
break;
|
|
||||||
} else {
|
|
||||||
qemu_cond_wait(&decomp_done_cond, &decomp_done_lock);
|
qemu_cond_wait(&decomp_done_cond, &decomp_done_lock);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void populate_compress(MigrationInfo *info)
|
void populate_compress(MigrationInfo *info)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue