]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sched_ext: Add scx_bpf_task_set_slice() and scx_bpf_task_set_dsq_vtime()
authorTejun Heo <tj@kernel.org>
Tue, 7 Oct 2025 01:51:45 +0000 (15:51 -1000)
committerTejun Heo <tj@kernel.org>
Mon, 13 Oct 2025 18:49:29 +0000 (08:49 -1000)
commit3035addfaf285f32d1f513d181ebcb85924ae3c3
tree7b891db099e10a42e8c70c7e966aed393eba8df7
parent111a79800aeda615797f20b3a00ef116edce9e03
sched_ext: Add scx_bpf_task_set_slice() and scx_bpf_task_set_dsq_vtime()

With the planned hierarchical scheduler support, sub-schedulers will need to
be verified for authority before being allowed to modify task->scx.slice and
task->scx.dsq_vtime. Add scx_bpf_task_set_slice() and
scx_bpf_task_set_dsq_vtime() which will perform the necessary permission
checks.

Root schedulers can still directly write to these fields, so this doesn't
affect existing schedulers.

Reviewed-by: Emil Tsalapatis <emil@etsalapatis.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/sched/ext.c
tools/sched_ext/include/scx/common.bpf.h