]> Gentwo Git Trees - linux/.git/commit
bpf: use rcu_read_lock_dont_migrate() for bpf_prog_run_array_cg()
authorMenglong Dong <menglong8.dong@gmail.com>
Thu, 21 Aug 2025 09:06:08 +0000 (17:06 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 26 Aug 2025 01:52:16 +0000 (18:52 -0700)
commit427a36bb5504e0fb33398a4ccd523fce95514d83
tree4e3441a322a3798ed8ea922f759f8c1bc9faddfb
parentcf4303b70dfa0163753e9b03ca78e5122727d4b8
bpf: use rcu_read_lock_dont_migrate() for bpf_prog_run_array_cg()

Use rcu_read_lock_dont_migrate() and rcu_read_unlock_migrate() in
bpf_prog_run_array_cg to obtain better performance when PREEMPT_RCU is
not enabled.

Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn>
Link: https://lore.kernel.org/r/20250821090609.42508-7-dongml2@chinatelecom.cn
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/cgroup.c