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

Use rcu_read_lock_dont_migrate() and rcu_read_unlock_migrate() in
bpf_cgrp_storage_free 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-3-dongml2@chinatelecom.cn
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/bpf_cgrp_storage.c