diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2015-10-29 14:58:08 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-11-02 22:48:39 -0500 |
commit | e9d8afa90b789b07d414637ab557d169d6b2b84e (patch) | |
tree | 534e0a4721d7d9af501b4bdf10757a517109c3af /Documentation/md.txt | |
parent | c210129760a010b555372ef74f4e1a46d4eb8a22 (diff) |
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 <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/md.txt')
0 files changed, 0 insertions, 0 deletions