Skip to content
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

Backport cgroup method bal fix #18

Merged
merged 2 commits into from
Mar 19, 2024
Merged

Commits on Mar 19, 2024

  1. scx: Improve error behavior when p->scx.cgrp_moving_from is unexpecte…

    …dly NULL
    
    Make the sanity check a bit more concise and ensure that ops.cgroup_move()
    is never called with NULL source cgroup.
    
    (cherry picked from commit 6d5da8c)
    htejun committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    c0c3774 View commit details
    Browse the repository at this point in the history
  2. scx: Fix ops.cgroup_move() not being called on a task which went thro…

    …ugh ops.cgroup_prep_move()
    
    sched_move_task() takes an early exit if the source and destination are
    identical. This triggers the warning in scx_cgroup_can_attach() as it leaves
    p->scx.cgrp_moving_from uncleared.
    
    Update the cgroup migration path so that ops.cgroup_prep_move() is skipped
    for identity migrations so that its invocations always match
    ops.cgroup_move() one-to-one.
    
    (cherry picked from commit d439866)
    htejun committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    ffdaefb View commit details
    Browse the repository at this point in the history