diff options
author | Hou Tao <[email protected]> | 2022-10-14 19:39:44 +0800 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2022-10-18 10:27:02 -0700 |
commit | 59be91e5e70a1aa91dfee8088b071f6d05c8a1a3 (patch) | |
tree | 676fe0a850775286ed89bf9a6d6b8801cdb33e75 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | e6c86c513f440bec5f1046539c7e3c6c653842da (diff) |
bpf: Use rcu_trace_implies_rcu_gp() in bpf memory allocator
The memory free logic in bpf memory allocator chains a RCU Tasks Trace
grace period and a normal RCU grace period one after the other, so it
can ensure that both sleepable and non-sleepable programs have finished.
With the introduction of rcu_trace_implies_rcu_gp(),
__free_rcu_tasks_trace() can check whether or not a normal RCU grace
period has also passed after a RCU Tasks Trace grace period has passed.
If it is true, freeing these elements directly, else freeing through
call_rcu().
Signed-off-by: Hou Tao <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions