Commit 98fd426
committed
Add dequeuing ready queue path in _sched_block()
Previously, _sched_block() only enqueued the task into the wait
queue and set its state to TASK_BLOCKED. In the new scheduler
design (ready-queue–based), a blocked task must also be removed
from its priority's ready queue to prevent it from being
selected by the scheduler.
This change adds the missing dequeue path for the corresponding
ready queue, ensuring behavior consistency.1 parent 589b0e7 commit 98fd426
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1055 | 1055 | | |
1056 | 1056 | | |
1057 | 1057 | | |
| 1058 | + | |
| 1059 | + | |
1058 | 1060 | | |
1059 | 1061 | | |
1060 | 1062 | | |
| |||
0 commit comments