]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita4364b86f5eed11f4e2ecb817cb864e89bb388c5
tree0bc805d79aa86c685e9f4b2a0e1d943ac61df601
parenta6cffff09aa8ca078ad2a7002ca3b70146cf0376
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