-
Notifications
You must be signed in to change notification settings - Fork 149
bpf: introduce and use rcu_migrate_{enable,disable} #9494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: bpf-next_base
Are you sure you want to change the base?
Conversation
Upstream branch: 0786654 |
c210f22
to
2530e45
Compare
Upstream branch: dc0fe95 |
624cfe2
to
bb7bd75
Compare
2530e45
to
61c9cef
Compare
Upstream branch: c80d797 |
bb7bd75
to
919e0d3
Compare
61c9cef
to
715d6cb
Compare
migrate_disable() is called to disable migration in the kernel, and it is used togather with rcu_read_lock() oftenly. However, with PREEMPT_RCU disabled, it's unnecessary, as rcu_read_lock() will disable preemption, which will also disable migration. Introduce rcu_migrate_enable() and rcu_migrate_disable(), which will do the migration enable and disable only when the rcu_read_lock() can't do it. Signed-off-by: Menglong Dong <[email protected]>
Replace the migrate_disable/migrate_enable with rcu_migrate_disable/rcu_migrate_enable in bpf_cgrp_storage_free to obtain better performance when PREEMPT_RCU is not enabled. Signed-off-by: Menglong Dong <[email protected]>
Replace the migrate_disable/migrate_enable with rcu_migrate_disable/rcu_migrate_enable in bpf_inode_storage_free to obtain better performance when PREEMPT_RCU is not enabled. Signed-off-by: Menglong Dong <[email protected]>
Replace the migrate_disable/migrate_enable with rcu_migrate_disable/rcu_migrate_enable in bpf_iter_run_prog to obtain better performance when PREEMPT_RCU is not enabled. Signed-off-by: Menglong Dong <[email protected]>
Replace the migrate_disable/migrate_enable with rcu_migrate_disable/rcu_migrate_enable in bpf_task_storage_free to obtain better performance when PREEMPT_RCU is not enabled. Signed-off-by: Menglong Dong <[email protected]>
Replace the migrate_disable/migrate_enable with rcu_migrate_disable/rcu_migrate_enable in bpf_prog_run_array_cg to obtain better performance when PREEMPT_RCU is not enabled. Signed-off-by: Menglong Dong <[email protected]>
Replace the migrate_disable/migrate_enable with rcu_migrate_disable/rcu_migrate_enable in trampoline.c to obtain better performance when PREEMPT_RCU is not enabled. Signed-off-by: Menglong Dong <[email protected]>
Upstream branch: 3ec8560 |
919e0d3
to
0761b79
Compare
Pull request for series with
subject: bpf: introduce and use rcu_migrate_{enable,disable}
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=991794