]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bpf: Use rcu_read_lock_dont_migrate in bpf_sk_storage.c
authorFushuai Wang <wangfushuai@baidu.com>
Tue, 7 Oct 2025 07:40:11 +0000 (15:40 +0800)
committerMartin KaFai Lau <martin.lau@kernel.org>
Tue, 7 Oct 2025 18:53:29 +0000 (11:53 -0700)
commit0db4941d9dae159d887e7e2eac7e54e60c3aac87
tree7e683c8a7167907c194a2beac241792776662c70
parentde7342228b7343774d6a9981c2ddbfb5e201044b
bpf: Use rcu_read_lock_dont_migrate in bpf_sk_storage.c

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

Signed-off-by: Fushuai Wang <wangfushuai@baidu.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://patch.msgid.link/20251007074011.12916-1-wangfushuai@baidu.com
net/core/bpf_sk_storage.c