OSDN Git Service

multifd: Fix the number of channels ready
authorJuan Quintela <quintela@redhat.com>
Wed, 26 Apr 2023 10:20:36 +0000 (12:20 +0200)
committerJuan Quintela <quintela@redhat.com>
Thu, 27 Apr 2023 14:37:28 +0000 (16:37 +0200)
commitd2026ee117147893f8d80f060cede6d872ecbd7f
tree53a1ebe4a1da0702344957e6de88255c0d1e783d
parent1eb95e1baef852d0971a1dd62a3293cd68f1ec35
multifd: Fix the number of channels ready

We don't wait in the sem when we are doing a sync_main.  Make it wait
there.  To make things clearer, we mark the channel ready at the
begining of the thread loop.

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
migration/multifd.c