aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorTejun Heo <[email protected]>2024-09-06 18:17:09 +0000
committerTejun Heo <[email protected]>2024-09-06 18:17:09 +0000
commitda330f5e4c197980ce4d343b1e557c9f33282770 (patch)
treec986a45b591159c12242cefbfa410405638e37d8 /rust/helpers/helpers.c
parentMerge branch 'bpf/master' into for-6.12 (diff)
downloadkernel-da330f5e4c197980ce4d343b1e557c9f33282770.tar.gz
kernel-da330f5e4c197980ce4d343b1e557c9f33282770.zip
sched_ext: Temporarily work around pick_task_scx() being called without balance_scx()
pick_task_scx() must be preceded by balance_scx() but there currently is a bug where fair could say yes on balance() but no on pick_task(), which then ends up calling pick_task_scx() without preceding balance_scx(). Work around by dropping WARN_ON_ONCE() and ignoring cases which don't make sense. This isn't great and can theoretically lead to stalls. However, for switch_all cases, this happens only while a BPF scheduler is being loaded or unloaded, and, for partial cases, fair will likely keep triggering this CPU. This will be reverted once the fair behavior is fixed. Signed-off-by: Tejun Heo <[email protected]> Cc: Peter Zijlstra <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions