diff options
author | Peter Xu <peterx@redhat.com> | 2022-10-04 14:24:29 -0400 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2022-11-21 11:58:10 +0100 |
commit | cedb70eafb4fd51d9c714981509d97b9f4055be5 (patch) | |
tree | a230b94aab982dab7966e935680acd1ac408e229 /migration | |
parent | afed4273b5c9438dfbaa0b4762d0433f295ccdc1 (diff) |
migration: Use non-atomic ops for clear log bitmap
Since we already have bitmap_mutex to protect either the dirty bitmap or
the clear log bitmap, we don't need atomic operations to set/clear/test on
the clear log bitmap. Switching all ops from atomic to non-atomic
versions, meanwhile touch up the comments to show which lock is in charge.
Introduced non-atomic version of bitmap_test_and_clear_atomic(), mostly the
same as the atomic version but simplified a few places, e.g. dropped the
"old_bits" variable, and also the explicit memory barriers.
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration')
0 files changed, 0 insertions, 0 deletions