Linux kernel -stable discussions
 help / color / mirror / Atom feed
* [PATCH 7.1.y 0/8] sched_ext: Backport dispatch and task-state fixes
@ 2026-11-28 10:23 Andrea Righi
  2026-11-28 10:23 ` [PATCH 7.1.y 1/8] sched_ext: Check remote rq eligibility under task's rq lock Andrea Righi
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: Andrea Righi @ 2026-11-28 10:23 UTC (permalink / raw)
  To: stable, Tejun Heo, David Vernet, Changwoo Min
  Cc: Greg Kroah-Hartman, Sasha Levin, Kuba Piecuch, fangqiurong,
	Rahad Bhuiya, sched-ext

Backport sched_ext ops.dequeue() and stale task state fixes.

These fixes correct ops.dequeue() callback behavior, synchronize
dispatch state and reset task fields when leaving SCX. These core fixes
allow schedulers that rely on the kernel's task lifecycle guarantees
(e.g., scx_bpfland) to operate correctly.

- Patches 1-6 use the older, unsplit sources and static DSQ helpers.
  Reuse the 7.2 backports where applicable, keeping the existing wakeup
  flag handling and dump helpers instead of pulling in later refactors.
- Patch 7 targets the older kernel/sched/ext.c disable path.
- Patch 8 resets the fields directly in the READY exit path because
  7.1 lacks scx_reset_task_fields().

Tested with CONFIG_SCHED_CLASS_EXT=y and CONFIG_PROVE_LOCKING=y.
All 30 sched_ext tests passed, including a task-field reset regression
test. scx_bpfland also passed load/unload testing under CPU load.

Andrea Righi (1):
  sched_ext: Reset dsq_vtime and slice when a task leaves SCX

Kuba Piecuch (4):
  sched_ext: Check remote rq eligibility under task's rq lock
  sched_ext: Call ops.dequeue() when a task arrives on a remote local
    DSQ
  sched_ext: Wait for SCX_OPSS_DISPATCHING before moving tasks off DSQs
  sched_ext: Generate qseq from a per-task counter

Rahad Bhuiya (1):
  sched_ext: Reset task fields on exit of an SCX_TASK_READY task

Tejun Heo (1):
  sched_ext: Wait for SCX_OPSS_DISPATCHING before reenqueueing a task

fangqiurong (1):
  sched_ext: Don't run ops.dequeue() with a DSQ lock held

 include/linux/sched/ext.h   |   1 +
 kernel/sched/ext.c          | 130 +++++++++++++++++++++++++-----------
 kernel/sched/ext_internal.h |  28 +++++---
 kernel/sched/sched.h        |   1 -
 4 files changed, 109 insertions(+), 51 deletions(-)


base-commit: 81d3924095fd017e473332a9b6dd6dd0e3d9a59b
-- 
2.56.1

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-11-29 13:55 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-28 10:23 [PATCH 7.1.y 0/8] sched_ext: Backport dispatch and task-state fixes Andrea Righi
2026-11-28 10:23 ` [PATCH 7.1.y 1/8] sched_ext: Check remote rq eligibility under task's rq lock Andrea Righi
2026-11-28 10:23 ` [PATCH 7.1.y 2/8] sched_ext: Don't run ops.dequeue() with a DSQ lock held Andrea Righi
2026-11-28 10:23 ` [PATCH 7.1.y 3/8] sched_ext: Call ops.dequeue() when a task arrives on a remote local DSQ Andrea Righi
2026-11-28 10:23 ` [PATCH 7.1.y 4/8] sched_ext: Wait for SCX_OPSS_DISPATCHING before reenqueueing a task Andrea Righi
2026-11-28 10:23 ` [PATCH 7.1.y 5/8] sched_ext: Wait for SCX_OPSS_DISPATCHING before moving tasks off DSQs Andrea Righi
2026-11-28 10:23 ` [PATCH 7.1.y 6/8] sched_ext: Generate qseq from a per-task counter Andrea Righi
2026-11-28 10:23 ` [PATCH 7.1.y 7/8] sched_ext: Reset dsq_vtime and slice when a task leaves SCX Andrea Righi
2026-11-28 10:23 ` [PATCH 7.1.y 8/8] sched_ext: Reset task fields on exit of an SCX_TASK_READY task Andrea Righi
2026-11-29 12:21 ` [PATCH 7.1.y 0/8] sched_ext: Backport dispatch and task-state fixes Greg Kroah-Hartman
2026-11-29 13:54   ` Andrea Righi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox