Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

Tejun Heo 979a98b6 7cd9a5d7

+3 -3
+3 -3
kernel/sched/ext.c
··· 494 494 * SCX_CALL_OP_TASK*() invokes an SCX op that takes one or two task arguments 495 495 * and records them in current->scx.kf_tasks[] for the duration of the call. A 496 496 * 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 498 498 * those subject tasks. 499 499 * 500 500 * Every SCX_CALL_OP_TASK*() call site invokes its op with @p's rq lock held - ··· 532 532 }) 533 533 534 534 /* 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, 536 536 struct task_struct *p) 537 537 { 538 538 if (unlikely((p != current->scx.kf_tasks[0] && ··· 9424 9424 if (unlikely(!sch)) 9425 9425 goto out; 9426 9426 9427 - if (!scx_kf_allowed_on_arg_tasks(sch, p)) 9427 + if (!scx_kf_arg_task_ok(sch, p)) 9428 9428 goto out; 9429 9429 9430 9430 cgrp = tg_cgrp(tg);