diff options
author | 2024-11-14 08:50:58 -1000 | |
---|---|---|
committer | 2024-11-14 08:50:58 -1000 | |
commit | a4af89cc50f3c1035c1e0dfb50948a23107f3e95 (patch) | |
tree | d64434d296f8fa64b64fea7155f18ac14709b305 /scripts/generate_rust_analyzer.py | |
parent | sched_ext: Handle cases where pick_task_scx() is called without preceding balance_scx() (diff) | |
download | wireguard-linux-a4af89cc50f3c1035c1e0dfb50948a23107f3e95.tar.xz wireguard-linux-a4af89cc50f3c1035c1e0dfb50948a23107f3e95.zip |
sched_ext: ops.cpu_acquire() should be called with SCX_KF_REST
ops.cpu_acquire() is currently called with 0 kf_maks which is interpreted as
SCX_KF_UNLOCKED which allows all unlocked kfuncs, but ops.cpu_acquire() is
called from balance_one() under the rq lock and should only be allowed call
kfuncs that are safe under the rq lock. Update it to use SCX_KF_REST.
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: David Vernet <void@manifault.com>
Cc: Zhao Mengmeng <zhaomzhao@126.com>
Link: http://lkml.kernel.org/r/ZzYvf2L3rlmjuKzh@slm.duckdns.org
Fixes: 245254f7081d ("sched_ext: Implement sched_ext_ops.cpu_acquire/release()")
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions