diff options
author | Christian Loehle <christian.loehle@arm.com> | 2025-09-03 22:23:09 +0100 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2025-09-03 11:50:36 -1000 |
commit | e0ca169638be12a0a861e3439e6117c58972cd08 (patch) | |
tree | d358a6c5b3bdb506cfb3e4ad2834f7eba9a2559f /rust/helpers/build_assert.c | |
parent | a5bd6ba30b3364354269b81ac55c2edca9a96d6d (diff) |
sched_ext: Introduce scx_bpf_locked_rq()
Most fields in scx_bpf_cpu_rq() assume that its rq_lock is held.
Furthermore they become meaningless without rq lock, too.
Make a safer version of scx_bpf_cpu_rq() that only returns a rq
if we hold rq lock of that rq.
Also mark the new scx_bpf_locked_rq() as returning NULL as
scx_bpf_cpu_rq() should've been too.
Signed-off-by: Christian Loehle <christian.loehle@arm.com>
Acked-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'rust/helpers/build_assert.c')
0 files changed, 0 insertions, 0 deletions