Skip to content
Commit df9a30fd authored by Madhuparna Bhowmik's avatar Madhuparna Bhowmik Committed by Paul E. McKenney
Browse files

kvm: mmu: page_track: Fix RCU list API usage



Use hlist_for_each_entry_srcu() instead of hlist_for_each_entry_rcu()
as it also checkes if the right lock is held.
Using hlist_for_each_entry_rcu() with a condition argument will not
report the cases where a SRCU protected list is traversed using
rcu_read_lock(). Hence, use hlist_for_each_entry_srcu().

Signed-off-by: default avatarMadhuparna Bhowmik <madhuparnabhowmik10@gmail.com>
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
Acked-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Cc: <kvm@vger.kernel.org>
parent ae2212a7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment