Skip to content

Commit acf588f

Browse files
htejungregkh
authored andcommitted
sched_ext: scx_bpf_dispatch_from_dsq_set_*() are allowed from unlocked context
[ Upstream commit 72b85bf ] 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()") Signed-off-by: Sasha Levin <[email protected]>
1 parent d14e16f commit acf588f

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
@@ -6473,6 +6473,8 @@ __bpf_kfunc_end_defs();
64736473

64746474
BTF_KFUNCS_START(scx_kfunc_ids_unlocked)
64756475
BTF_ID_FLAGS(func, scx_bpf_create_dsq, KF_SLEEPABLE)
6476+
BTF_ID_FLAGS(func, scx_bpf_dispatch_from_dsq_set_slice)
6477+
BTF_ID_FLAGS(func, scx_bpf_dispatch_from_dsq_set_vtime)
64766478
BTF_ID_FLAGS(func, scx_bpf_dispatch_from_dsq, KF_RCU)
64776479
BTF_ID_FLAGS(func, scx_bpf_dispatch_vtime_from_dsq, KF_RCU)
64786480
BTF_KFUNCS_END(scx_kfunc_ids_unlocked)

0 commit comments

Comments
 (0)