aboutsummaryrefslogtreecommitdiff
path: root/migration/ram.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2023-04-11 18:04:59 +0200
committerJuan Quintela <quintela@redhat.com>2023-04-24 11:28:59 +0200
commit3c764f9b2bc3e5eb5ed93ab45c2de6d599fef00f (patch)
tree7c9812b4a893321d1bcc65dfce214cf5d0974623 /migration/ram.c
parent536b5a4e56ec67c958f46e7d46cbd5ac34e5a239 (diff)
migration: Make postcopy_requests atomic
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Peter Xu <peterx@redhat.com>
Diffstat (limited to 'migration/ram.c')
-rw-r--r--migration/ram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/migration/ram.c b/migration/ram.c
index 3c13136559..fe69ecaef4 100644
--- a/migration/ram.c
+++ b/migration/ram.c
@@ -2169,7 +2169,7 @@ int ram_save_queue_pages(const char *rbname, ram_addr_t start, ram_addr_t len)
RAMBlock *ramblock;
RAMState *rs = ram_state;
- ram_counters.postcopy_requests++;
+ stat64_add(&ram_counters.postcopy_requests, 1);
RCU_READ_LOCK_GUARD();
if (!rbname) {