From: Takuya Yoshikawa Date: Tue, 8 Jan 2013 10:46:07 +0000 (+0900) Subject: KVM: Make kvm_mmu_change_mmu_pages() take mmu_lock by itself X-Git-Tag: v3.9-rc1~97^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b34cb590fb099f7929dd78d9464b70319ee12a98;p=pandora-kernel.git KVM: Make kvm_mmu_change_mmu_pages() take mmu_lock by itself No reason to make callers take mmu_lock since we do not need to protect kvm_mmu_change_mmu_pages() and kvm_mmu_slot_remove_write_access() together by mmu_lock in kvm_arch_commit_memory_region(): the former calls kvm_mmu_commit_zap_page() and flushes TLBs by itself. Note: we do not need to protect kvm->arch.n_requested_mmu_pages by mmu_lock as can be seen from the fact that it is read locklessly. Reviewed-by: Marcelo Tosatti Signed-off-by: Takuya Yoshikawa Signed-off-by: Gleb Natapov --- Reading git-diff-tree failed