]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - kernel/futex.c
ARM: dts: r7s72100: update sdhi clock bindings
[linux.git] / kernel / futex.c
index cdf3650361414e39e97018012871579c1eda76f6..229a744b1781be2e4fccc1b5c290bd246d8b8694 100644 (file)
@@ -61,6 +61,8 @@
 #include <linux/nsproxy.h>
 #include <linux/ptrace.h>
 #include <linux/sched/rt.h>
+#include <linux/sched/wake_q.h>
+#include <linux/sched/mm.h>
 #include <linux/hugetlb.h>
 #include <linux/freezer.h>
 #include <linux/bootmem.h>
@@ -338,7 +340,7 @@ static inline bool should_fail_futex(bool fshared)
 
 static inline void futex_get_mm(union futex_key *key)
 {
-       atomic_inc(&key->private.mm->mm_count);
+       mmgrab(key->private.mm);
        /*
         * Ensure futex_get_mm() implies a full barrier such that
         * get_futex_key() implies a full barrier. This is relied upon