aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorMenglong Dong <menglong8.dong@gmail.com>2025-08-21 17:06:03 +0800
committerAlexei Starovoitov <ast@kernel.org>2025-08-25 18:52:16 -0700
commit1b93c03fb319d72a1f5f4723abd5df15ce40f4e2 (patch)
treee58094f04fdcca3fdaa21ff0e0e0c0e8f724e353 /scripts/Makefile.thinlto
parentbpf: Remove preempt_disable in bpf_try_get_buffers (diff)
rcu: add rcu_read_lock_dont_migrate()
migrate_disable() is called to disable migration in the kernel, and it is often used together with rcu_read_lock(). However, with PREEMPT_RCU disabled, it's unnecessary, as rcu_read_lock() will always disable preemption, which will also disable migration. Introduce rcu_read_lock_dont_migrate() and rcu_read_unlock_migrate(), which will do the migration enable and disable only when PREEMPT_RCU. Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn> Reviewed-by: Paul E. McKenney <paulmck@kernel.org> Link: https://lore.kernel.org/r/20250821090609.42508-2-dongml2@chinatelecom.cn Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions