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