aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/futex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/futex.c b/kernel/futex.c
index b26dcfc02c94..d710fae8abbe 100644
--- a/kernel/futex.c
+++ b/kernel/futex.c
@@ -61,6 +61,7 @@
61#include <linux/nsproxy.h> 61#include <linux/nsproxy.h>
62#include <linux/ptrace.h> 62#include <linux/ptrace.h>
63#include <linux/sched/rt.h> 63#include <linux/sched/rt.h>
64#include <linux/freezer.h>
64 65
65#include <asm/futex.h> 66#include <asm/futex.h>
66 67
@@ -1807,7 +1808,7 @@ static void futex_wait_queue_me(struct futex_hash_bucket *hb, struct futex_q *q,
1807 * is no timeout, or if it has yet to expire. 1808 * is no timeout, or if it has yet to expire.
1808 */ 1809 */
1809 if (!timeout || timeout->task) 1810 if (!timeout || timeout->task)
1810 schedule(); 1811 freezable_schedule();
1811 } 1812 }
1812 __set_current_state(TASK_RUNNING); 1813 __set_current_state(TASK_RUNNING);
1813} 1814}