aboutsummaryrefslogtreecommitdiff
path: root/include/linux/perf_event.h
diff options
context:
space:
mode:
authorAlexei Starovoitov <[email protected]>2020-06-29 21:33:39 -0700
committerAlexei Starovoitov <[email protected]>2020-07-01 08:07:13 -0700
commitbba1dc0b55ac462d24ed1228ad49800c238cd6d7 (patch)
treed83554930260fe70393ea2d74734357577035dce /include/linux/perf_event.h
parent8c18311067d0f0d5f332b9e1f3859eb15e23332d (diff)
bpf: Remove redundant synchronize_rcu.
bpf_free_used_maps() or close(map_fd) will trigger map_free callback. bpf_free_used_maps() is called after bpf prog is no longer executing: bpf_prog_put->call_rcu->bpf_prog_free->bpf_free_used_maps. Hence there is no need to call synchronize_rcu() to protect map elements. Note that hash_of_maps and array_of_maps update/delete inner maps via sys_bpf() that calls maybe_wait_bpf_programs() and synchronize_rcu(). Signed-off-by: Alexei Starovoitov <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Acked-by: Paul E. McKenney <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'include/linux/perf_event.h')
0 files changed, 0 insertions, 0 deletions