diff options
| author | Daniel Borkmann <[email protected]> | 2015-10-29 13:58:08 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-11-03 03:48:39 +0000 |
| commit | e9d8afa90b789b07d414637ab557d169d6b2b84e (patch) | |
| tree | 534e0a4721d7d9af501b4bdf10757a517109c3af /samples/bpf/fds_example.c | |
| parent | bpf: align and clean bpf_{map,prog}_get helpers (diff) | |
| download | kernel-e9d8afa90b789b07d414637ab557d169d6b2b84e.tar.gz kernel-e9d8afa90b789b07d414637ab557d169d6b2b84e.zip | |
bpf: consolidate bpf_prog_put{, _rcu} dismantle paths
We currently have duplicated cleanup code in bpf_prog_put() and
bpf_prog_put_rcu() cleanup paths. Back then we decided that it was
not worth it to make it a common helper called by both, but with
the recent addition of resource charging, we could have avoided
the fix in commit ac00737f4e81 ("bpf: Need to call bpf_prog_uncharge_memlock
from bpf_prog_put") if we would have had only a single, common path.
We can simplify it further by assigning aux->prog only once during
allocation time.
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Alexei Starovoitov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'samples/bpf/fds_example.c')
0 files changed, 0 insertions, 0 deletions
