Skip to content
Snippets Groups Projects
Commit 6706dae9 authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

virt/kvm: Replace spin_is_locked() with lockdep


lockdep_assert_held() is better suited to checking locking requirements,
since it only checks if the current thread holds the lock regardless of
whether someone else does. This is also a step towards possibly removing
spin_is_locked().

Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.ibm.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: "Radim Krčmář" <rkrcmar@redhat.com>
Cc: <kvm@vger.kernel.org>
Acked-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 728e3e61
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment