[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 4/6] migration/multifd: used must not be 0 for a pen
From: |
Wei Yang |
Subject: |
[Qemu-devel] [PATCH 4/6] migration/multifd: used must not be 0 for a pending job |
Date: |
Thu, 6 Jun 2019 16:34:59 +0800 |
After thread synchronization request is handled in another case, this
means when we only get pending_job when there is used pages.
Signed-off-by: Wei Yang <address@hidden>
---
migration/ram.c | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/migration/ram.c b/migration/ram.c
index 9982930392..3e48795608 100644
--- a/migration/ram.c
+++ b/migration/ram.c
@@ -1118,12 +1118,11 @@ static void *multifd_send_thread(void *opaque)
break;
}
- if (used) {
- ret = qio_channel_writev_all(p->c, p->pages->iov,
+ assert(used);
+ ret = qio_channel_writev_all(p->c, p->pages->iov,
used, &local_err);
- if (ret != 0) {
- break;
- }
+ if (ret != 0) {
+ break;
}
qemu_mutex_lock(&p->mutex);
--
2.19.1
- [Qemu-devel] [PATCH 0/6] multifd: a new mechanism for send thread sync, Wei Yang, 2019/06/06
- [Qemu-devel] [PATCH 2/6] migration/multifd: notify channels_ready when send thread starts, Wei Yang, 2019/06/06
- [Qemu-devel] [PATCH 4/6] migration/multifd: used must not be 0 for a pending job,
Wei Yang <=
- [Qemu-devel] [PATCH 5/6] migration/multifd: use boolean for pending_job is enough, Wei Yang, 2019/06/06
- [Qemu-devel] [PATCH 3/6] migration/multifd: use sync field to synchronize send threads, Wei Yang, 2019/06/06
- [Qemu-devel] [PATCH 1/6] migration/multifd: move MultiFDSendParams handling into multifd_send_fill_packet(), Wei Yang, 2019/06/06
- [Qemu-devel] [PATCH 6/6] migration/multifd: there is no spurious wakeup now, Wei Yang, 2019/06/06