The spurious wakeup is gone. Signed-off-by: Wei Yang <richardw.y...@linux.intel.com> --- 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