summaryrefslogtreecommitdiff
path: root/kernel/sysctl-test.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2026-10-26 14:17:42 -1000
committerTejun Heo <tj@kernel.org>2026-10-27 09:40:56 -1000
commit20a61e41423374fb4ece816528fe3f0f9faf820a (patch)
tree893fcd4674a35ec8b674b46726546b5aba8e2c39 /kernel/sysctl-test.c
parent8197fa420ddd6cd9d3a023b63db34b798d163cc1 (diff)
sched_ext: Fix a cpu idling after put_prev_task_scx() queues its task on the local DSQ
put_prev_task_scx() enqueues a still-runnable task when the pick has settled on idle. The insert can land the task on the cpu's own local DSQ, and then the cpu must not go idle over it. 7a9df7667963 ("sched_ext: Fix stall when a task enqueued with SCX_ENQ_LAST lands back on its CPU's local DSQ") reschedules the idle task in that case, but only after the SCX_ENQ_LAST insert. The plain insert, taken when the task can't stay on the cpu, can land on the local DSQ too: rescue can admit a task there when its scheduler lacks SCX_CAP_BASE on the cpu. Without the resched the cpu idles with the task queued until an unrelated wakeup or the rescue timer's escalation. Reschedule after either insert. In the following patches, the plain insert becomes the common path for bypassed tasks under rescue. v2: The description's forward reference to the plain insert becoming the common path no longer names the following patch. Fixes: 5fd501744b10 ("sched_ext: Add bandwidth-limited rescue execution for stranded tasks") Signed-off-by: Tejun Heo <tj@kernel.org> Reviewed-by: Andrea Righi <arighi@nvidia.com>
Diffstat (limited to 'kernel/sysctl-test.c')
0 files changed, 0 insertions, 0 deletions