]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
sched_ext: scx_bpf_dispatch_from_dsq_set_*() are allowed from unlocked context
authorTejun Heo <tj@kernel.org>
Sat, 9 Nov 2024 19:40:25 +0000 (09:40 -1000)
committerTejun Heo <tj@kernel.org>
Sat, 9 Nov 2024 19:40:25 +0000 (09:40 -1000)
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()")
kernel/sched/ext.c

index 0c68ace02e4b2ea2862c93971c44b3a407dd801d..5dcb0c1c49ea1b7ec2f8df29135de5074ef4d31a 100644 (file)
@@ -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)