Skip to contentSkip to conversation

kvm: fix comment on locking

PATCH New Michael S. Tsirkin 1 participant 1 message May 5, 2009 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kvm: fix comment on locking

__kvm_set_memory_region callers must (and do) take slots_lock, not mmap_sem, for write. Fix the comment to match this reality.

---
 virt/kvm/kvm_main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
virt/kvm/kvm_main.c +1 -1
index 605697e..060d86c 100644
@@ -911,7 +911,7 @@ static int kvm_vm_release(struct inode *inode, struct file *filp)
  *
  * Discontiguous memory is allowed, mostly for framebuffers.
  *
- * Must be called holding mmap_sem for write.
+ * Must be called holding slots_lock for write.
  */
 int __kvm_set_memory_region(struct kvm *kvm,
 			    struct kvm_userspace_memory_region *mem,
Signature · 1 line
1.6.3.rc3.1.g830204