All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] sched_ext: sync compat.bpf.h peek/reenqueue fixes from sched-ext/scx
@ 2026-08-17 14:31 Changwoo Min
  2026-08-17 14:31 ` [PATCH 1/2] compat.bpf.h: Gate scx_bpf_dsq_peek kfunc behind kernel version 7.1.0 Changwoo Min
  2026-08-17 14:31 ` [PATCH 2/2] compat.bpf.h: add scx_bpf_reenqueue_local_from_anywhere() compat helper Changwoo Min
  0 siblings, 2 replies; 5+ messages in thread
From: Changwoo Min @ 2026-08-17 14:31 UTC (permalink / raw)
  To: tj, void, arighi, changwoo; +Cc: gavinguo, kernel-dev, sched-ext, linux-kernel

These two fixes landed first in the sched-ext/scx tree [1], which carries
the reference scx/compat.bpf.h. This series syncs them into the kernel
tree's tools/sched_ext/include/scx/compat.bpf.h.

Patch 1 gates the lockless scx_bpf_dsq_peek() behind kernel >= 7.1.0,
where its stale task-pointer bug is fixed (2f2ea7709266, 71d7847cad44);
older kernels fall back to bpf_iter_scx_dsq.

Patch 2 adds scx_bpf_reenqueue_local_from_anywhere() and prefers the
generic scx_bpf_dsq_reenq() kfunc, giving arbitrary-context callers a
supported entry point (-ENOTSUP when unavailable).

[1] https://github.com/sched-ext/scx

Changwoo Min (1):
  compat.bpf.h: add scx_bpf_reenqueue_local_from_anywhere() compat
    helper

Gavin Guo (1):
  compat.bpf.h: Gate scx_bpf_dsq_peek kfunc behind kernel version 7.1.0

 tools/sched_ext/include/scx/compat.bpf.h | 48 ++++++++++++++++++------
 1 file changed, 37 insertions(+), 11 deletions(-)


base-commit: e5a0a3d6b05a62a2921698a60f2c84ea3da97d51
-- 
2.55.0


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

end of thread, other threads:[~2026-08-17 17:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-17 14:31 [PATCH 0/2] sched_ext: sync compat.bpf.h peek/reenqueue fixes from sched-ext/scx Changwoo Min
2026-08-17 14:31 ` [PATCH 1/2] compat.bpf.h: Gate scx_bpf_dsq_peek kfunc behind kernel version 7.1.0 Changwoo Min
2026-08-17 17:41   ` Tejun Heo
2026-08-17 14:31 ` [PATCH 2/2] compat.bpf.h: add scx_bpf_reenqueue_local_from_anywhere() compat helper Changwoo Min
2026-08-17 17:41   ` 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.