]> Git Repo - linux.git/commit
bpf: Call maybe_wait_bpf_programs() only once from generic_map_delete_batch()
authorEric Dumazet <[email protected]>
Fri, 18 Feb 2022 18:18:01 +0000 (10:18 -0800)
committerDaniel Borkmann <[email protected]>
Fri, 18 Feb 2022 19:37:26 +0000 (20:37 +0100)
commit9087c6ff8dfe0a070e4e05a434399080603c29de
tree4d9e8a1a54e4f7251d13003e05016306f1900ab8
parent086d49058cd8471046ae9927524708820f5fd1c7
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 <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Reviewed-by: Stanislav Fomichev <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
kernel/bpf/syscall.c
This page took 0.056883 seconds and 4 git commands to generate.