From: Michael S. Tsirkin Date: Mon, 29 Jun 2009 19:24:45 +0000 (+0300) Subject: KVM: document lock nesting rule X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=22fc02943a630417cb71734cd0b2e6f8dc4210b6;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git KVM: document lock nesting rule Document kvm->lock nesting within kvm->slots_lock Signed-off-by: Michael S. Tsirkin Signed-off-by: Avi Kivity --- diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 594606526620..fc1b58a72757 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -68,7 +68,7 @@ MODULE_LICENSE("GPL"); /* * Ordering of locks: * - * kvm->lock --> kvm->irq_lock + * kvm->slots_lock --> kvm->lock --> kvm->irq_lock */ DEFINE_SPINLOCK(kvm_lock);