migration/ram.c: Remove the qemu_mutex_lock in colo_flush_ram_cache.
commit672159a97ce7c1ca2b97bfef439d7994f79b1c61
authorRao, Lei <lei.rao@intel.com>
Wed, 10 Nov 2021 08:37:36 +0000 (10 16:37 +0800)
committerJuan Quintela <quintela@redhat.com>
Wed, 15 Dec 2021 09:31:42 +0000 (15 10:31 +0100)
tree4ded365a131792b7dc94e906dac89005bd3c8dc8
parent76b56fdfc9fa43ec6e5986aee33f108c6c6a511e
migration/ram.c: Remove the qemu_mutex_lock in colo_flush_ram_cache.

The code to acquire bitmap_mutex is added in the commit of
"63268c4970a5f126cc9af75f3ccb8057abef5ec0". There is no
need to acquire bitmap_mutex in colo_flush_ram_cache(). This
is because the colo_flush_ram_cache only be called on the COLO
secondary VM, which is the destination side.
On the COLO secondary VM, only the COLO thread will touch
the bitmap of ram cache.

Signed-off-by: Lei Rao <lei.rao@intel.com>
Reviewed-by: Zhang Chen <chen.zhang@intel.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/ram.c