Skip to content

Conversation

cloehle
Copy link
Contributor

@cloehle cloehle commented Aug 4, 2025

This is the conversion series for using the safer scx_bpf_remote_curr(),
which now also requires the schedulers to call bpf_task_release().

This is dependent on:
https://lore.kernel.org/lkml/[email protected]/
so obviously do not merge yet, but feel free to review.

@etsal etsal self-requested a review August 4, 2025 16:48
@etsal
Copy link
Contributor

etsal commented Aug 4, 2025

Even when the kernel patch gets merged, we need compat macros to keep the schedulers runnable on existing kernels. Can you wrap this around a macro? There's examples in the scheds/include/scx headers.

cloehle added 6 commits August 7, 2025 11:58
Add the new kfunc scx_bpf_task_acquire_remote_curr() to provide a
safer way to access an unlocked rq's curr.

Signed-off-by: Christian Loehle <[email protected]>
The new scx_bpf_task_acquire_remote_curr() is safer to use, switch to it
from scx_bpf_cpu_rq() as we only care about it's ->curr anyway.

Signed-off-by: Christian Loehle <[email protected]>
The new scx_bpf_task_acquire_remote_curr() is safer to use, switch to it
from scx_bpf_cpu_rq() as we only care about it's ->curr anyway.

Signed-off-by: Christian Loehle <[email protected]>
The new scx_bpf_task_acquire_remote_curr() is safer to use, switch to it
from scx_bpf_cpu_rq() as we only care about it's ->curr anyway.

Signed-off-by: Christian Loehle <[email protected]>
The new scx_bpf_task_acquire_remote_curr() is safer to use, switch to it
from scx_bpf_cpu_rq() as we only care about it's ->curr anyway.

Signed-off-by: Christian Loehle <[email protected]>
The new scx_bpf_task_acquire_remote_curr() is safer to use, switch to it
from scx_bpf_cpu_rq() as we only care about it's ->curr anyway.

Signed-off-by: Christian Loehle <[email protected]>
@cloehle cloehle force-pushed the cloehle/scx-use-scx_bpf_remote_curr branch from c06dbd3 to ba2bb2b Compare August 10, 2025 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants