Skip to content

Commit 54e9625

Browse files
committed
sched_ext: Mark scx_bpf_dsq_move_set_[slice|vtime]() with KF_RCU
scx_bpf_dsq_move_set_slice() and scx_bpf_dsq_move_set_vtime() take a DSQ iterator argument which has to be valid. Mark them with KF_RCU. Fixes: 4c30f5c ("sched_ext: Implement scx_bpf_dispatch[_vtime]_from_dsq()") Cc: stable@vger.kernel.org # v6.12+ Acked-by: Andrea Righi <arighi@nvidia.com> Signed-off-by: Tejun Heo <tj@kernel.org>
1 parent 3a86608 commit 54e9625

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

kernel/sched/ext.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5688,8 +5688,8 @@ BTF_KFUNCS_START(scx_kfunc_ids_dispatch)
56885688
BTF_ID_FLAGS(func, scx_bpf_dispatch_nr_slots)
56895689
BTF_ID_FLAGS(func, scx_bpf_dispatch_cancel)
56905690
BTF_ID_FLAGS(func, scx_bpf_dsq_move_to_local)
5691-
BTF_ID_FLAGS(func, scx_bpf_dsq_move_set_slice)
5692-
BTF_ID_FLAGS(func, scx_bpf_dsq_move_set_vtime)
5691+
BTF_ID_FLAGS(func, scx_bpf_dsq_move_set_slice, KF_RCU)
5692+
BTF_ID_FLAGS(func, scx_bpf_dsq_move_set_vtime, KF_RCU)
56935693
BTF_ID_FLAGS(func, scx_bpf_dsq_move, KF_RCU)
56945694
BTF_ID_FLAGS(func, scx_bpf_dsq_move_vtime, KF_RCU)
56955695
BTF_KFUNCS_END(scx_kfunc_ids_dispatch)
@@ -5820,8 +5820,8 @@ __bpf_kfunc_end_defs();
58205820

58215821
BTF_KFUNCS_START(scx_kfunc_ids_unlocked)
58225822
BTF_ID_FLAGS(func, scx_bpf_create_dsq, KF_SLEEPABLE)
5823-
BTF_ID_FLAGS(func, scx_bpf_dsq_move_set_slice)
5824-
BTF_ID_FLAGS(func, scx_bpf_dsq_move_set_vtime)
5823+
BTF_ID_FLAGS(func, scx_bpf_dsq_move_set_slice, KF_RCU)
5824+
BTF_ID_FLAGS(func, scx_bpf_dsq_move_set_vtime, KF_RCU)
58255825
BTF_ID_FLAGS(func, scx_bpf_dsq_move, KF_RCU)
58265826
BTF_ID_FLAGS(func, scx_bpf_dsq_move_vtime, KF_RCU)
58275827
BTF_KFUNCS_END(scx_kfunc_ids_unlocked)

0 commit comments

Comments
 (0)