Commit ffd8c66
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 eeeeea8 commit ffd8c66
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
931 | 931 | | |
932 | 932 | | |
933 | 933 | | |
| 934 | + | |
| 935 | + | |
934 | 936 | | |
935 | 937 | | |
936 | 938 | | |
| |||
0 commit comments