We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62860da commit 6092f72Copy full SHA for 6092f72
kernel/bpf/cgroup.c
@@ -180,8 +180,8 @@ static void activate_effective_progs(struct cgroup *cgrp,
180
enum bpf_attach_type type,
181
struct bpf_prog_array *old_array)
182
{
183
- rcu_swap_protected(cgrp->bpf.effective[type], old_array,
184
- lockdep_is_held(&cgroup_mutex));
+ old_array = rcu_replace_pointer(cgrp->bpf.effective[type], old_array,
+ lockdep_is_held(&cgroup_mutex));
185
/* free prog array after grace period, since __cgroup_bpf_run_*()
186
* might be still walking the array
187
*/
0 commit comments