Peter Xu <pet...@redhat.com> writes:

> It's just a simple wrapper for rp_sem on either wait() or kick(), make it
> even clearer on how it is used.  Prepared to be used even for other things.
>
> Signed-off-by: Peter Xu <pet...@redhat.com>
> ---
>  migration/migration.h | 15 +++++++++++++++
>  migration/migration.c |  4 ++--
>  migration/ram.c       | 16 +++++++---------
>  3 files changed, 24 insertions(+), 11 deletions(-)
>
> diff --git a/migration/migration.h b/migration/migration.h
> index a5c95e4d43..b6de78dbdd 100644
> --- a/migration/migration.h
> +++ b/migration/migration.h
> @@ -304,6 +304,12 @@ struct MigrationState {
>           * be cleared in the rp_thread!
>           */
>          bool          rp_thread_created;
> +        /*
> +         * Used to synchonize between migration main thread and return path

synchronize

Reviewed-by: Fabiano Rosas <faro...@suse.de>

Reply via email to