Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sched_ext: scx_bpf_dispatch_from_dsq_set_*() are allowed from unlocked context

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()")

+2
+2
kernel/sched/ext.c
··· 6766 6766 6767 6767 BTF_KFUNCS_START(scx_kfunc_ids_unlocked) 6768 6768 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) 6769 6771 BTF_ID_FLAGS(func, scx_bpf_dispatch_from_dsq, KF_RCU) 6770 6772 BTF_ID_FLAGS(func, scx_bpf_dispatch_vtime_from_dsq, KF_RCU) 6771 6773 BTF_KFUNCS_END(scx_kfunc_ids_unlocked)