KVM: MMU: kvm_pv_mmu_op should not take mmap_sem
authorMarcelo Tosatti <mtosatti@redhat.com>
Wed, 16 Apr 2008 20:19:06 +0000 (17:19 -0300)
committerAvi Kivity <avi@qumranet.com>
Sun, 27 Apr 2008 15:21:45 +0000 (18:21 +0300)
kvm_pv_mmu_op should not take mmap_sem. All gfn_to_page() callers down
in the MMU processing will take it if necessary, so as it is it can
deadlock.

Apparently a leftover from the days before slots_lock.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>

No differences found