aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/mmu.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kvm/mmu.c')
-rw-r--r--arch/x86/kvm/mmu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index ccacf0b1b54..b6a9963400a 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -3587,7 +3587,7 @@ static int mmu_shrink(struct shrinker *shrink, int nr_to_scan, gfp_t gfp_mask)
3587 if (nr_to_scan == 0) 3587 if (nr_to_scan == 0)
3588 goto out; 3588 goto out;
3589 3589
3590 spin_lock(&kvm_lock); 3590 raw_spin_lock(&kvm_lock);
3591 3591
3592 list_for_each_entry(kvm, &vm_list, vm_list) { 3592 list_for_each_entry(kvm, &vm_list, vm_list) {
3593 int idx, freed_pages; 3593 int idx, freed_pages;
@@ -3610,7 +3610,7 @@ static int mmu_shrink(struct shrinker *shrink, int nr_to_scan, gfp_t gfp_mask)
3610 if (kvm_freed) 3610 if (kvm_freed)
3611 list_move_tail(&kvm_freed->vm_list, &vm_list); 3611 list_move_tail(&kvm_freed->vm_list, &vm_list);
3612 3612
3613 spin_unlock(&kvm_lock); 3613 raw_spin_unlock(&kvm_lock);
3614 3614
3615out: 3615out:
3616 return percpu_counter_read_positive(&kvm_total_used_mmu_pages); 3616 return percpu_counter_read_positive(&kvm_total_used_mmu_pages);