]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - arch/x86/kvm/mmu.c
kvm: Convert kvm_lock to a mutex
[mirror_ubuntu-bionic-kernel.git] / arch / x86 / kvm / mmu.c
index 295c678b37f559be6ea03ef814d004c8585cfc14..dc3792e7092c7159b5581d02360335b5a94691ef 100644 (file)
@@ -5474,7 +5474,7 @@ mmu_shrink_scan(struct shrinker *shrink, struct shrink_control *sc)
        int nr_to_scan = sc->nr_to_scan;
        unsigned long freed = 0;
 
-       spin_lock(&kvm_lock);
+       mutex_lock(&kvm_lock);
 
        list_for_each_entry(kvm, &vm_list, vm_list) {
                int idx;
@@ -5524,7 +5524,7 @@ unlock:
                break;
        }
 
-       spin_unlock(&kvm_lock);
+       mutex_unlock(&kvm_lock);
        return freed;
 }