diff options
author | 2025-01-08 09:07:14 +0800 | |
---|---|---|
committer | 2025-01-08 18:06:35 -0800 | |
commit | ea5b229630a631ee6a72e1f58bc40029efc1daf8 (patch) | |
tree | 7f24c8d8efb01327833d955baed549e2d84fd2a7 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bpf: Remove migrate_{disable|enable} from LPM trie (diff) | |
download | linux-rng-ea5b229630a631ee6a72e1f58bc40029efc1daf8.tar.xz linux-rng-ea5b229630a631ee6a72e1f58bc40029efc1daf8.zip |
bpf: Remove migrate_{disable|enable} in ->map_for_each_callback
BPF program may call bpf_for_each_map_elem(), and it will call
the ->map_for_each_callback callback of related bpf map. Considering the
running context of bpf program has already disabled migration, remove
the unnecessary migrate_{disable|enable} pair in the implementations of
->map_for_each_callback. To ensure the guarantee will not be voilated
later, also add cant_migrate() check in the implementations.
Signed-off-by: Hou Tao <houtao1@huawei.com>
Link: https://lore.kernel.org/r/20250108010728.207536-3-houtao@huaweicloud.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions