Commit 3572bea
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 0b002a8 commit 3572bea
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1050 | 1050 | | |
1051 | 1051 | | |
1052 | 1052 | | |
| 1053 | + | |
| 1054 | + | |
1053 | 1055 | | |
1054 | 1056 | | |
1055 | 1057 | | |
| |||
0 commit comments