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

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