[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 6/6] migration/multifd: there is no spurious wakeup now
From: |
Wei Yang |
Subject: |
[PATCH v2 6/6] migration/multifd: there is no spurious wakeup now |
Date: |
Sat, 26 Oct 2019 08:45:20 +0800 |
The spurious wakeup is gone.
Signed-off-by: Wei Yang <address@hidden>
---
migration/ram.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/migration/ram.c b/migration/ram.c
index fccdbfabc5..73ace40b1b 100644
--- a/migration/ram.c
+++ b/migration/ram.c
@@ -1168,8 +1168,8 @@ static void *multifd_send_thread(void *opaque)
qemu_mutex_unlock(&p->mutex);
break;
} else {
- qemu_mutex_unlock(&p->mutex);
- /* sometimes there are spurious wakeups */
+ /* no other case should trigger me */
+ g_assert_not_reached();
}
}
--
2.17.1
- [PATCH v2 0/6] migration/multifd: a new mechanism for send thread sync, Wei Yang, 2019/10/25
- [PATCH v2 2/6] migration/multifd: notify channels_ready when send thread starts, Wei Yang, 2019/10/25
- [PATCH v2 1/6] migration/multifd: move Params update and pages cleanup into multifd_send_fill_packet(), Wei Yang, 2019/10/25
- [PATCH v2 3/6] migration/multifd: use sync field to synchronize send threads, Wei Yang, 2019/10/25
- [PATCH v2 4/6] migration/multifd: used must not be 0 for a pending job, Wei Yang, 2019/10/25
- [PATCH v2 5/6] migration/multifd: use boolean for pending_job is enough, Wei Yang, 2019/10/25
- [PATCH v2 6/6] migration/multifd: there is no spurious wakeup now,
Wei Yang <=