diff options
author | Eric Dumazet <edumazet@google.com> | 2022-02-18 21:18:01 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2022-02-18 22:37:26 +0300 |
commit | 9087c6ff8dfe0a070e4e05a434399080603c29de (patch) | |
tree | 4d9e8a1a54e4f7251d13003e05016306f1900ab8 /tools/testing/selftests/bpf/test_cpp.cpp | |
parent | 086d49058cd8471046ae9927524708820f5fd1c7 (diff) | |
download | linux-9087c6ff8dfe0a070e4e05a434399080603c29de.tar.xz |
bpf: Call maybe_wait_bpf_programs() only once from generic_map_delete_batch()
As stated in the comment found in maybe_wait_bpf_programs(),
the synchronize_rcu() barrier is only needed before returning
to userspace, not after each deletion in the batch.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Stanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/bpf/20220218181801.2971275-1-eric.dumazet@gmail.com
Diffstat (limited to 'tools/testing/selftests/bpf/test_cpp.cpp')
0 files changed, 0 insertions, 0 deletions