]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb09e15acb28732ad62291b8b3e0052f4f9a92587
treea5b2d84dfb0f7009538c1c07ca5e244da2be3956
parentc508192cdedae3839bd7074df112ce94ae370bf5
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