-
Notifications
You must be signed in to change notification settings - Fork 5
bpf: introduce and use rcu_migrate_{enable,disable} #5754
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
bpf: introduce and use rcu_migrate_{enable,disable} #5754
Conversation
|
Upstream branch: 0786654 |
5e1a4c1 to
91606c1
Compare
|
Upstream branch: dc0fe95 |
ac8b65b to
cdeb078
Compare
91606c1 to
9e5d665
Compare
|
Upstream branch: c80d797 |
cdeb078 to
a9323ed
Compare
9e5d665 to
f86fd37
Compare
|
Upstream branch: abdaf49 |
a9323ed to
c434a4f
Compare
f86fd37 to
2842450
Compare
|
Upstream branch: 3ec8560 |
c434a4f to
84d2112
Compare
2842450 to
53b8665
Compare
|
Upstream branch: 1274163 |
84d2112 to
8aba165
Compare
53b8665 to
26f4a08
Compare
|
Upstream branch: d87fdb1 |
8aba165 to
a972095
Compare
26f4a08 to
032ad98
Compare
|
Upstream branch: dbe99ea |
a972095 to
ba30ab0
Compare
032ad98 to
728c457
Compare
|
Upstream branch: 6850a33 |
ba30ab0 to
94da9e9
Compare
728c457 to
a5fe106
Compare
|
Upstream branch: dbe99ea |
94da9e9 to
33d23d4
Compare
a5fe106 to
34c4028
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: 5c42715 |
33d23d4 to
782911b
Compare
|
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=991794 expired. Closing PR. |
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