All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V2 0/1] sched_ext: Fix spurious WARN on stale ops_state in ops_dequeue()
@ 2026-05-21 10:59 Samuele Mariotti
  2026-05-21 10:59 ` [PATCH V2 1/1] " Samuele Mariotti
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Samuele Mariotti @ 2026-05-21 10:59 UTC (permalink / raw)
  To: arighi, tj, void, changwoo; +Cc: sched-ext, linux-kernel, Samuele Mariotti

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(-)

-- 
2.54.0


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

end of thread, other threads:[~2026-05-21 16:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-21 10:59 [PATCH V2 0/1] sched_ext: Fix spurious WARN on stale ops_state in ops_dequeue() Samuele Mariotti
2026-05-21 10:59 ` [PATCH V2 1/1] " Samuele Mariotti
2026-05-21 16:45   ` Andrea Righi
2026-05-21 16:29 ` [PATCH V2 0/1] " Tejun Heo
2026-05-21 16:30 ` Tejun Heo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.