ram: Let colo_flush_ram_cache take the bitmap_mutex
authorLukas Straub <lukasstraub2@web.de>
Mon, 8 May 2023 19:10:55 +0000 (21:10 +0200)
committerJuan Quintela <quintela@redhat.com>
Wed, 10 May 2023 16:48:11 +0000 (18:48 +0200)
commit9d638407efa44153c5269f04e5010b105f5daac9
tree75cf3f9f17fe170f59b5c1baf34dc5b73e0b3902
parent871cfc540014bb2292d79ce4348484a3dbb33034
ram: Let colo_flush_ram_cache take the bitmap_mutex

This is not required, colo_flush_ram_cache does not run concurrently
with the multifd threads since the cache is only flushed after
everything has been received. But it makes me more comfortable.

This will be used in the next commits to add colo support to multifd.

Signed-off-by: Lukas Straub <lukasstraub2@web.de>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Message-Id: <35cb23ba854151d38a31e3a5c8a1020e4283cb4a.1683572883.git.lukasstraub2@web.de>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/ram.c