summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorHou Tao <houtao1@huawei.com>2022-09-21 09:38:26 +0200
committerAlexei Starovoitov <ast@kernel.org>2022-09-22 03:08:54 +0200
commit1d8b82c613297f24354b4d750413a7456b5cd92c (patch)
tree215d668304cfd232550951da4cb0362813cfde53 /Documentation
parentbpf: Prevent bpf program recursion for raw tracepoint probes (diff)
downloadlinux-1d8b82c613297f24354b4d750413a7456b5cd92c.tar.xz
linux-1d8b82c613297f24354b4d750413a7456b5cd92c.zip
bpf: Always use raw spinlock for hash bucket lock
For a non-preallocated hash map on RT kernel, regular spinlock instead of raw spinlock is used for bucket lock. The reason is that on RT kernel memory allocation is forbidden under atomic context and regular spinlock is sleepable under RT. Now hash map has been fully converted to use bpf_map_alloc, and there will be no synchronous memory allocation for non-preallocated hash map, so it is safe to always use raw spinlock for bucket lock on RT. So removing the usage of htab_use_raw_lock() and updating the comments accordingly. Signed-off-by: Hou Tao <houtao1@huawei.com> Link: https://lore.kernel.org/r/20220921073826.2365800-1-houtao@huaweicloud.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions