]> git.ipfire.org Git - thirdparty/linux.git/commit
bpf: Remove unused percpu counter from bpf_local_storage_map_free
authorAmery Hung <ameryhung@gmail.com>
Thu, 5 Feb 2026 22:29:06 +0000 (14:29 -0800)
committerMartin KaFai Lau <martin.lau@kernel.org>
Fri, 6 Feb 2026 22:29:18 +0000 (14:29 -0800)
commit3417dffb58331d1e7e4f3e30ec95cc0f8114ff10
treec69180d0d7299149e4505f8ea237e8eb1daddc21
parent5254de7b9607dd341795cd693185f719a9e7298a
bpf: Remove unused percpu counter from bpf_local_storage_map_free

Percpu locks have been removed from cgroup and task local storage. Now
that all local storage no longer use percpu variables as locks preventing
recursion, there is no need to pass them to bpf_local_storage_map_free().
Remove the argument from the function.

Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Amery Hung <ameryhung@gmail.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://patch.msgid.link/20260205222916.1788211-9-ameryhung@gmail.com
include/linux/bpf_local_storage.h
kernel/bpf/bpf_cgrp_storage.c
kernel/bpf/bpf_inode_storage.c
kernel/bpf/bpf_local_storage.c
kernel/bpf/bpf_task_storage.c
net/core/bpf_sk_storage.c