Merge tag 'v3.10.92'
[firefly-linux-kernel-4.4.55.git] / kernel / futex.c
index 625a4e659e7a8bf58d4cdbb6108e22218456f821..ad971d0f0be0c5fab77c5440c0bb464fa41a0bbf 100644 (file)
@@ -62,6 +62,7 @@
 #include <linux/ptrace.h>
 #include <linux/sched/rt.h>
 #include <linux/hugetlb.h>
+#include <linux/freezer.h>
 
 #include <asm/futex.h>
 
@@ -1935,7 +1936,7 @@ static void futex_wait_queue_me(struct futex_hash_bucket *hb, struct futex_q *q,
                 * is no timeout, or if it has yet to expire.
                 */
                if (!timeout || timeout->task)
-                       schedule();
+                       freezable_schedule();
        }
        __set_current_state(TASK_RUNNING);
 }