summaryrefslogtreecommitdiff
path: root/kernel/bpf/arraymap.c
diff options
context:
space:
mode:
authorAnay Wadhera <awadhera@berkeley.edu>2021-05-20 21:48:56 -0700
committerMichael Bestas <mkbestas@lineageos.org>2022-04-19 00:49:40 +0300
commite45eb0f3226d21a3c54c5d2b808777eeb74537fa (patch)
tree41dd9562a0e76735b4b3a9bb4ec4743ec498bb6b /kernel/bpf/arraymap.c
parente10bf956c95972d928a0d7e69b9ce207122d3f45 (diff)
Revert "bpf: generally move prog destruction to RCU deferral"
This reverts commit e25dc63aa366fd0f61d1d9ba67b66f5d75fc4372. Signed-off-by: Chatur27 <jasonbright2709@gmail.com>
Diffstat (limited to 'kernel/bpf/arraymap.c')
-rw-r--r--kernel/bpf/arraymap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/bpf/arraymap.c b/kernel/bpf/arraymap.c
index daa4e0782cf7..0eb11b4ac4c7 100644
--- a/kernel/bpf/arraymap.c
+++ b/kernel/bpf/arraymap.c
@@ -270,7 +270,9 @@ static void *prog_fd_array_get_ptr(struct bpf_map *map, int fd)
static void prog_fd_array_put_ptr(void *ptr)
{
- bpf_prog_put(ptr);
+ struct bpf_prog *prog = ptr;
+
+ bpf_prog_put_rcu(prog);
}
/* decrement refcnt of all bpf_progs that are stored in this map */