]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - kernel/sched/core.c
wake_up_process() should be never used to wakeup a TASK_STOPPED/TRACED task
[~shefty/rdma-dev.git] / kernel / sched / core.c
index 257002c13bb02acad92c74347e3b38ca3bc881b1..26058d0bebba1ca927c4df3e993190d5415f006c 100644 (file)
@@ -1523,7 +1523,8 @@ out:
  */
 int wake_up_process(struct task_struct *p)
 {
-       return try_to_wake_up(p, TASK_ALL, 0);
+       WARN_ON(task_is_stopped_or_traced(p));
+       return try_to_wake_up(p, TASK_NORMAL, 0);
 }
 EXPORT_SYMBOL(wake_up_process);