Message ID | 20231018100651.32674-7-quintela@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [PULL,01/11] migration: RDMA is not compatible with anything else | expand |
diff --git a/migration/ram-compress.c b/migration/ram-compress.c index 3ad5975d48..95a8d6b906 100644 --- a/migration/ram-compress.c +++ b/migration/ram-compress.c @@ -481,14 +481,10 @@ void decompress_data_with_multi_threads(QEMUFile *f, void *host, int len) decomp_param[idx].len = len; qemu_cond_signal(&decomp_param[idx].cond); 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); } }