KVM: MMU: clenaup locking in mmu_free_roots()
authorGleb Natapov <gleb@redhat.com>
Thu, 16 May 2013 08:55:51 +0000 (11:55 +0300)
committerGleb Natapov <gleb@redhat.com>
Thu, 16 May 2013 08:55:51 +0000 (11:55 +0300)
commit35af577aacb2fd2a6b407953044aea1cf0546fad
tree0bc805d79aa86c685e9f4b2a0e1d943ac61df601
parent0061d53daf26ff713ab43ab84ae5c44b5edbefa9
KVM: MMU: clenaup locking in mmu_free_roots()

Do locking around each case separately instead of having one lock and two
unlocks. Move root_hpa assignment out of the lock.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
arch/x86/kvm/mmu.c