History

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. ]

Oleg Nesterov committed 5 years ago

Commit 2b8ca1a1 parent 02dbb721 file · +0 −1Browse files

Showing the changes to kernel (1 of 1 file). Show all

Unified · Split

kernel/sched/core.c+0−1
@@ -585,7 +585,6 @@ void wake_up_q(struct wake_q_head *head) · 584 unmodified lines
585585 struct task_struct *task;
586586
587587 task = container_of(node, struct task_struct, wake_q);
588− BUG_ON(!task);
589588 /* Task can safely be re-inserted now: */
590589 node = node->next;
591590 task->wake_q.next = NULL;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t