diff mbox series

[6/6] migration/multifd: there is no spurious wakeup now

Message ID 20190606083501.2087-7-richardw.yang@linux.intel.com (mailing list archive)
State New, archived
Headers show
Series multifd: a new mechanism for send thread sync | expand

Commit Message

Wei Yang June 6, 2019, 8:35 a.m. UTC
The spurious wakeup is gone.

Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
---
 migration/ram.c | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series

Patch

diff --git a/migration/ram.c b/migration/ram.c
index 831b15833b..2490631d52 100644
--- a/migration/ram.c
+++ b/migration/ram.c
@@ -1153,9 +1153,6 @@  static void *multifd_send_thread(void *opaque)
         } else if (p->quit) {
             qemu_mutex_unlock(&p->mutex);
             break;
-        } else {
-            qemu_mutex_unlock(&p->mutex);
-            /* sometimes there are spurious wakeups */
         }
     }