Skip to content

Commit 72b85bf

Browse files
committed
sched_ext: scx_bpf_dispatch_from_dsq_set_*() are allowed from unlocked context
4c30f5c ("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 <[email protected]> Fixes: 4c30f5c ("sched_ext: Implement scx_bpf_dispatch[_vtime]_from_dsq()")
1 parent f39489f commit 72b85bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kernel/sched/ext.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6766,6 +6766,8 @@ __bpf_kfunc_end_defs();
67666766

67676767
BTF_KFUNCS_START(scx_kfunc_ids_unlocked)
67686768
BTF_ID_FLAGS(func, scx_bpf_create_dsq, KF_SLEEPABLE)
6769+
BTF_ID_FLAGS(func, scx_bpf_dispatch_from_dsq_set_slice)
6770+
BTF_ID_FLAGS(func, scx_bpf_dispatch_from_dsq_set_vtime)
67696771
BTF_ID_FLAGS(func, scx_bpf_dispatch_from_dsq, KF_RCU)
67706772
BTF_ID_FLAGS(func, scx_bpf_dispatch_vtime_from_dsq, KF_RCU)
67716773
BTF_KFUNCS_END(scx_kfunc_ids_unlocked)

0 commit comments

Comments
 (0)