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)
commit960b3991698872f68f09d51f4c2794ad484fe1fd
treea5b2d84dfb0f7009538c1c07ca5e244da2be3956
parent1336028b9a1fb33537eab8caec66e812eb8cad63
KVM: MMU: kvm_pv_mmu_op should not take mmap_sem

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>
arch/x86/kvm/mmu.c