* Bihong Yu (yubih...@huawei.com) wrote: > Signed-off-by: Bihong Yu <yubih...@huawei.com> > Reviewed-by: Chuan Zheng <zhengch...@huawei.com>
Reviewed-by: Dr. David Alan Gilbert <dgilb...@redhat.com> > --- > migration/ram.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/migration/ram.c b/migration/ram.c > index 0aea78f..09178cc 100644 > --- a/migration/ram.c > +++ b/migration/ram.c > @@ -101,14 +101,16 @@ static struct { > > static void XBZRLE_cache_lock(void) > { > - if (migrate_use_xbzrle()) > + if (migrate_use_xbzrle()) { > qemu_mutex_lock(&XBZRLE.lock); > + } > } > > static void XBZRLE_cache_unlock(void) > { > - if (migrate_use_xbzrle()) > + if (migrate_use_xbzrle()) { > qemu_mutex_unlock(&XBZRLE.lock); > + } > } > > /** > -- > 1.8.3.1 > -- Dr. David Alan Gilbert / dgilb...@redhat.com / Manchester, UK