multifd: Protect multifd_send_sync_main() calls
commitb05292c237030343516d073b1a1e5f49ffc017a8
authorJuan Quintela <quintela@redhat.com>
Tue, 21 Jun 2022 10:21:32 +0000 (21 12:21 +0200)
committerJuan Quintela <quintela@redhat.com>
Thu, 27 Apr 2023 14:37:28 +0000 (27 16:37 +0200)
tree8a61e656ff82e73b10c17f801117072941957764
parent77c259a4cb1c9799754b48f570301ebf1de5ded8
multifd: Protect multifd_send_sync_main() calls

We only need to do that on the ram_save_iterate() call on sending and
on destination when we get a RAM_SAVE_FLAG_EOS.

In setup() and complete() we need to synch in both new and old cases,
so don't add a check there.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Acked-by: Peter Xu <peterx@redhat.com>
---

Remove the wrappers that we take out on patch 5.
migration/ram.c