Commit c4d4de6
committed
Use _sched_block_dequeue() helper in mutex_block_atomic()
Previously, mutex_block_atomic() only marked the running task as
TASK_BLOCKED, which was sufficient when scheduling selected tasks
by scanning the global task list.
Since the new scheduler is designed to select only runnable tasks
from ready_queue[], mutex blocking now also requires removing the
task’s rq_node from the corresponding ready queue, preventing the
scheduler from selecting a blocked (non-runnable/dequeued) task again.1 parent b66b154 commit c4d4de6
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
82 | 85 | | |
83 | 86 | | |
84 | 87 | | |
| |||
0 commit comments