]> git.baikalelectronics.ru Git - kernel.git/commit
virt/kvm: Replace spin_is_locked() with lockdep
authorPaul E. McKenney <paulmck@linux.ibm.com>
Tue, 8 Jan 2019 18:39:49 +0000 (10:39 -0800)
committerPaul E. McKenney <paulmck@linux.ibm.com>
Fri, 25 Jan 2019 23:36:05 +0000 (15:36 -0800)
commit4565c79e916e28433c31440410622d78ff483880
tree9f3f10eb1cb61d51ca5a8c1c7fb1d8b3b5cd487b
parent707267a7f91d02a2a3f18255e2be032167794d25
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: Paul 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: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c