KVM: Convert kvm_lock back to non-raw spinlock
[firefly-linux-kernel-4.4.55.git] / arch / x86 / kvm / mmu.c
index 004cc87b781c2694a0f6428ef8b6614ff60711b7..3c1877bbfe6a1481d02a65096fb17bceb50a5c12 100644 (file)
@@ -4220,7 +4220,7 @@ static int mmu_shrink(struct shrinker *shrink, struct shrink_control *sc)
        if (nr_to_scan == 0)
                goto out;
 
-       raw_spin_lock(&kvm_lock);
+       spin_lock(&kvm_lock);
 
        list_for_each_entry(kvm, &vm_list, vm_list) {
                int idx;
@@ -4256,7 +4256,7 @@ static int mmu_shrink(struct shrinker *shrink, struct shrink_control *sc)
                break;
        }
 
-       raw_spin_unlock(&kvm_lock);
+       spin_unlock(&kvm_lock);
 
 out:
        return percpu_counter_read_positive(&kvm_total_used_mmu_pages);