summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2024-11-09 09:40:25 -1000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-05 14:01:35 +0100
commitacf588f9b6fb560e986365c6b175aaf589ef1f2a (patch)
treedc24fb6dd49aa560d063693e3a2d05bba274e794 /kernel
parentd14e16fccd82b12c036184d68b4f29397ee3befe (diff)
downloadlinux-acf588f9b6fb560e986365c6b175aaf589ef1f2a.tar.gz
linux-acf588f9b6fb560e986365c6b175aaf589ef1f2a.tar.bz2
linux-acf588f9b6fb560e986365c6b175aaf589ef1f2a.zip
sched_ext: scx_bpf_dispatch_from_dsq_set_*() are allowed from unlocked context
[ Upstream commit 72b85bf6a7f6f6c38c39a1e5b04bc1da1bf5016e ] 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()") Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched/ext.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/sched/ext.c b/kernel/sched/ext.c
index ecb88c528544..16613631543f 100644
--- a/kernel/sched/ext.c
+++ b/kernel/sched/ext.c
@@ -6473,6 +6473,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)