perf tests: Fix test 68 zstd compression for s390
[linux-2.6-microblaze.git] / kernel / futex.c
index b4b9f96..e646661 100644 (file)
@@ -698,10 +698,10 @@ static int fault_in_user_writeable(u32 __user *uaddr)
        struct mm_struct *mm = current->mm;
        int ret;
 
-       down_read(&mm->mmap_sem);
+       mmap_read_lock(mm);
        ret = fixup_user_fault(current, mm, (unsigned long)uaddr,
                               FAULT_FLAG_WRITE, NULL);
-       up_read(&mm->mmap_sem);
+       mmap_read_unlock(mm);
 
        return ret < 0 ? ret : 0;
 }