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

Samuele Mariotti posted 1 patch 3 days, 9 hours ago
kernel/sched/ext.c | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
[PATCH V2 0/1] sched_ext: Fix spurious WARN on stale ops_state in ops_dequeue()
Posted by Samuele Mariotti 3 days, 9 hours ago
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
Re: [PATCH V2 0/1] sched_ext: Fix spurious WARN on stale ops_state in ops_dequeue()
Posted by Tejun Heo 3 days, 4 hours ago
Hello,

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

Applied 1 to sched_ext/for-7.1-fixes.

Thanks.

--
tejun
Re: [PATCH V2 0/1] sched_ext: Fix spurious WARN on stale ops_state in ops_dequeue()
Posted by Tejun Heo 3 days, 4 hours ago
Hello,

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

Applied 1 to sched_ext/for-7.1-fixes.

Thanks.

--
tejun