* [PATCH sched_ext/for-6.13] sched_ext: scx_bpf_dispatch_from_dsq_set_*() are allowed from unlocked context
@ 2024-11-09 19:39 Tejun Heo
0 siblings, 0 replies; only message in thread
From: Tejun Heo @ 2024-11-09 19:39 UTC (permalink / raw)
To: David Vernet; +Cc: linux-kernel, kernel-team, sched-ext
4c30f5ce4f7a ("sched_ext: Implement scx_bpf_dispatch[_vtime]_from_dsq()")
added four kfuncs for dispatching while iterating. They are allowed from the
dispatch and unlocked contexts but two of the kfuncs were only added in the
dispatch section. Add missing declarations in the unlocked section.
Signed-off-by: Tejun Heo <tj@kernel.org>
Fixes: 4c30f5ce4f7a ("sched_ext: Implement scx_bpf_dispatch[_vtime]_from_dsq()")
---
Applying to sched_ext/for-6.13.
Thanks.
kernel/sched/ext.c | 2 ++
1 file changed, 2 insertions(+)
--- a/kernel/sched/ext.c
+++ b/kernel/sched/ext.c
@@ -6766,6 +6766,8 @@ __bpf_kfunc_end_defs();
BTF_KFUNCS_START(scx_kfunc_ids_unlocked)
BTF_ID_FLAGS(func, scx_bpf_create_dsq, KF_SLEEPABLE)
+BTF_ID_FLAGS(func, scx_bpf_dispatch_from_dsq_set_slice)
+BTF_ID_FLAGS(func, scx_bpf_dispatch_from_dsq_set_vtime)
BTF_ID_FLAGS(func, scx_bpf_dispatch_from_dsq, KF_RCU)
BTF_ID_FLAGS(func, scx_bpf_dispatch_vtime_from_dsq, KF_RCU)
BTF_KFUNCS_END(scx_kfunc_ids_unlocked)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-11-09 19:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-09 19:39 [PATCH sched_ext/for-6.13] sched_ext: scx_bpf_dispatch_from_dsq_set_*() are allowed from unlocked context Tejun Heo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®