]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - kernel/futex.c
futex: Use freezable blocking call
[karo-tx-linux.git] / kernel / futex.c
index 49dacfb4574563b61551a436a21a2fc33053e47f..c3a1a55a52141851630b91f2bff2aa789b508ace 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>
 
@@ -1808,7 +1809,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);
 }