Skip to content

scx_lavd: Get the right CPU context from ops.stopping() #1732

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 23, 2025

Conversation

arighi
Copy link
Contributor

@arighi arighi commented Apr 23, 2025

Similarly to commit e81fa0d ("lavd: get cpu context of scx_bpf_task_cpu in running") apply the same change to ops.stopping() as well.

Both ops.running() and ops.stopping() can be called from a CPU other than the one the task is assigned to (i.e., a task changing a property of another task), therefore always rely on scx_bpf_task_cpu() to get the right CPU context.

Similarly to commit e81fa0d ("lavd: get cpu context of scx_bpf_task_cpu
in running") apply the same change to ops.stopping() as well.

Both ops.running() and ops.stopping() can be called from a CPU other
than the one the task is assigned to (i.e., a task changing a property
of another task), therefore always rely on scx_bpf_task_cpu() to get the
right CPU context.

Signed-off-by: Andrea Righi <[email protected]>
@multics69 multics69 added this pull request to the merge queue Apr 23, 2025
@multics69
Copy link
Contributor

Thanks @arighi for the fix!

Merged via the queue into main with commit 3791de5 Apr 23, 2025
32 checks passed
@multics69 multics69 deleted the lavd-fix-stopping-cpu branch April 23, 2025 23:00
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.

3 participants