Skip to content

sched_ext: Fix spurious WARN on stale ops_state in ops_dequeue()

Samuele Mariotti lkml sched-ext 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest1 patch 3 repliesIn review
  2. v11 patch 7 repliesSuperseded

Changes in v2 from the cover letter

- Use READ_ONCE() for p->scx.flags to ensure fresh reads
- Add cpu_relax() to reduce power consumption and improve performance during the spin-wait
- Use unlikely() to optimize branch prediction for the common case
- Expand comment to document the bounded retry guarantee

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1sched_ext: Fix spurious WARN on stale ops_state in ops_dequeue()kernel/sched/ext.c+15 -21 reply

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchAndrea Righi
1/1R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH V2 0/1] sched_ext: Fix spurious WARN on stale ops_state in ops_dequeue()

Hello everyone,

Note: scripts/checkpatch.pl reports a false positive for the word "fallthrough" in a comment. The wording was intentionally kept as-is per review discussion, as it accurately describes the control flow.

Changes v1 -> v2:
- Use READ_ONCE() for p->scx.flags to ensure fresh reads
- Add cpu_relax() to reduce power consumption and improve performance during the spin-wait
- Use unlikely() to optimize branch prediction for the common case
- Expand comment to document the bounded retry guarantee

Thanks,
Samuele

Samuele Mariotti (1):
sched_ext: Fix spurious WARN on stale ops_state in ops_dequeue()

 kernel/sched/ext.c | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)
Signature · 1 line
2.54.0