summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2021-05-10 18:15:22 +0200
committerIngo Molnar <mingo@kernel.org>2021-05-12 11:03:54 +0200
commit2b8ca1a907d5fffc85fb648bbace28ddf3420825 (patch)
tree2c6deded270c29113c21f95ed9f1781976de9899
parentsched/fair: Fix clearing of has_idle_cores flag in select_idle_cpu() (diff)
downloadlinux-2b8ca1a907d5fffc85fb648bbace28ddf3420825.tar.xz
linux-2b8ca1a907d5fffc85fb648bbace28ddf3420825.zip
sched/core: Remove the pointless BUG_ON(!task) from wake_up_q()
container_of() can never return NULL - so don't check for it pointlessly. [ mingo: Twiddled the changelog. ] Signed-off-by: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20210510161522.GA32644@redhat.com
-rw-r--r--kernel/sched/core.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 5226cc26a095..61d1d85bb93d 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -585,7 +585,6 @@ void wake_up_q(struct wake_q_head *head)
struct task_struct *task;
task = container_of(node, struct task_struct, wake_q);
- BUG_ON(!task);
/* Task can safely be re-inserted now: */
node = node->next;
task->wake_q.next = NULL;