summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2026-04-10 20:54:06 +0300
committerTejun Heo <tj@kernel.org>2026-04-10 20:54:06 +0300
commit979a98b6e9bf8ebf11dc3ca260be087606ac4c2c (patch)
treedab663c1d036d6f67674ca7258d5e084e9b6b440
parent7cd9a5d7d4b75802b97aa89f6f53375a6d84d1d5 (diff)
downloadlinux-979a98b6e9bf8ebf11dc3ca260be087606ac4c2c.tar.xz
sched_ext: Rename scx_kf_allowed_on_arg_tasks() to scx_kf_arg_task_ok()
The "kf_allowed" framing on this helper comes from the old runtime scx_kf_allowed() gate, which has been removed. Rename it to describe what it actually does in the new model. Pure rename, no functional change. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: Andrea Righi <arighi@nvidia.com>
-rw-r--r--kernel/sched/ext.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/sched/ext.c b/kernel/sched/ext.c
index d37418a684e9..40421698c9e3 100644
--- a/kernel/sched/ext.c
+++ b/kernel/sched/ext.c
@@ -494,7 +494,7 @@ do { \
* SCX_CALL_OP_TASK*() invokes an SCX op that takes one or two task arguments
* and records them in current->scx.kf_tasks[] for the duration of the call. A
* kfunc invoked from inside such an op can then use
- * scx_kf_allowed_on_arg_tasks() to verify that its task argument is one of
+ * scx_kf_arg_task_ok() to verify that its task argument is one of
* those subject tasks.
*
* Every SCX_CALL_OP_TASK*() call site invokes its op with @p's rq lock held -
@@ -532,7 +532,7 @@ do { \
})
/* see SCX_CALL_OP_TASK() */
-static __always_inline bool scx_kf_allowed_on_arg_tasks(struct scx_sched *sch,
+static __always_inline bool scx_kf_arg_task_ok(struct scx_sched *sch,
struct task_struct *p)
{
if (unlikely((p != current->scx.kf_tasks[0] &&
@@ -9424,7 +9424,7 @@ __bpf_kfunc struct cgroup *scx_bpf_task_cgroup(struct task_struct *p,
if (unlikely(!sch))
goto out;
- if (!scx_kf_allowed_on_arg_tasks(sch, p))
+ if (!scx_kf_arg_task_ok(sch, p))
goto out;
cgrp = tg_cgrp(tg);