mmap locking API: use coccinelle to convert mmap_sem rwsem call sites
[linux-2.6-microblaze.git] / arch / s390 / kvm / gaccess.c
index 4e6fb34..6d6b570 100644 (file)
@@ -1173,7 +1173,7 @@ int kvm_s390_shadow_fault(struct kvm_vcpu *vcpu, struct gmap *sg,
        int dat_protection, fake;
        int rc;
 
-       down_read(&sg->mm->mmap_sem);
+       mmap_read_lock(sg->mm);
        /*
         * We don't want any guest-2 tables to change - so the parent
         * tables/pointers we read stay valid - unshadowing is however
@@ -1202,6 +1202,6 @@ shadow_page:
        if (!rc)
                rc = gmap_shadow_page(sg, saddr, __pte(pte.val));
        ipte_unlock(vcpu);
-       up_read(&sg->mm->mmap_sem);
+       mmap_read_unlock(sg->mm);
        return rc;
 }