migration: No need to take rcu during sync_dirty_bitmap
authorPeter Xu <peterx@redhat.com>
Mon, 3 Jun 2019 06:50:46 +0000 (14:50 +0800)
committerJuan Quintela <quintela@redhat.com>
Mon, 15 Jul 2019 13:39:02 +0000 (15:39 +0200)
commit267691b65cf7167881609dde1e50a4aafd86af08
treed1073f21fdecb2edab3913d2d75f78ae5fa9879c
parent422314e751ba071ca92152a544c0656882e5acde
migration: No need to take rcu during sync_dirty_bitmap

cpu_physical_memory_sync_dirty_bitmap() has one RAMBlock* as
parameter, which means that it must be with RCU read lock held
already.  Taking it again inside seems redundant.  Removing it.
Instead comment on the functions about the RCU read lock.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20190603065056.25211-2-peterx@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
include/exec/ram_addr.h
migration/ram.c