aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/bpf-cgroup.h
diff options
context:
space:
mode:
authorDaniel Mack <daniel@zonque.org>2016-12-15 10:53:21 +0100
committerDavid S. Miller <davem@davemloft.net>2016-12-17 11:14:25 -0500
commitdcdc43d6642c828fa10d25130a92b712003d2ca4 (patch)
treed92e90a6248822a7ad720643521c48f6a9ca5f51 /include/linux/bpf-cgroup.h
parentMerge branch 'inet_csk_get_port-and-soreusport-fixes' (diff)
downloadlinux-dev-dcdc43d6642c828fa10d25130a92b712003d2ca4.tar.xz
linux-dev-dcdc43d6642c828fa10d25130a92b712003d2ca4.zip
bpf: cgroup: annotate pointers in struct cgroup_bpf with __rcu
The member 'effective' in 'struct cgroup_bpf' is protected by RCU. Annotate it accordingly to squelch a sparse warning. Signed-off-by: Daniel Mack <daniel@zonque.org> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/bpf-cgroup.h')
-rw-r--r--include/linux/bpf-cgroup.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/bpf-cgroup.h b/include/linux/bpf-cgroup.h
index 7b6e5d168c95..92bc89ae7e20 100644
--- a/include/linux/bpf-cgroup.h
+++ b/include/linux/bpf-cgroup.h
@@ -20,7 +20,7 @@ struct cgroup_bpf {
* when this cgroup is accessed.
*/
struct bpf_prog *prog[MAX_BPF_ATTACH_TYPE];
- struct bpf_prog *effective[MAX_BPF_ATTACH_TYPE];
+ struct bpf_prog __rcu *effective[MAX_BPF_ATTACH_TYPE];
};
void cgroup_bpf_put(struct cgroup *cgrp);