Skip to content

Commit 979a98b

Browse files
committed
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>
1 parent 7cd9a5d commit 979a98b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

kernel/sched/ext.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ do { \
494494
* SCX_CALL_OP_TASK*() invokes an SCX op that takes one or two task arguments
495495
* and records them in current->scx.kf_tasks[] for the duration of the call. A
496496
* kfunc invoked from inside such an op can then use
497-
* scx_kf_allowed_on_arg_tasks() to verify that its task argument is one of
497+
* scx_kf_arg_task_ok() to verify that its task argument is one of
498498
* those subject tasks.
499499
*
500500
* Every SCX_CALL_OP_TASK*() call site invokes its op with @p's rq lock held -
@@ -532,7 +532,7 @@ do { \
532532
})
533533

534534
/* see SCX_CALL_OP_TASK() */
535-
static __always_inline bool scx_kf_allowed_on_arg_tasks(struct scx_sched *sch,
535+
static __always_inline bool scx_kf_arg_task_ok(struct scx_sched *sch,
536536
struct task_struct *p)
537537
{
538538
if (unlikely((p != current->scx.kf_tasks[0] &&
@@ -9424,7 +9424,7 @@ __bpf_kfunc struct cgroup *scx_bpf_task_cgroup(struct task_struct *p,
94249424
if (unlikely(!sch))
94259425
goto out;
94269426

9427-
if (!scx_kf_allowed_on_arg_tasks(sch, p))
9427+
if (!scx_kf_arg_task_ok(sch, p))
94289428
goto out;
94299429

94309430
cgrp = tg_cgrp(tg);

0 commit comments

Comments
 (0)