diff options
author | Hou Tao <houtao1@huawei.com> | 2023-08-16 12:59:58 +0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2023-08-21 15:21:16 -0700 |
commit | c2e42ddf26cad03ea92400c88b024e8ce1601dff (patch) | |
tree | a3e9247534fe1fcb2809caabc9ba62daa7e6e381 /mm/huge_memory.c | |
parent | 8f8500a247c91e0d263283879166fffbb3329584 (diff) | |
download | linux-stable-c2e42ddf26cad03ea92400c88b024e8ce1601dff.tar.gz linux-stable-c2e42ddf26cad03ea92400c88b024e8ce1601dff.tar.bz2 linux-stable-c2e42ddf26cad03ea92400c88b024e8ce1601dff.zip |
bpf, cpumask: Clean up bpf_cpu_map_entry directly in cpu_map_free
After synchronous_rcu(), both the dettached XDP program and
xdp_do_flush() are completed, and the only user of bpf_cpu_map_entry
will be cpu_map_kthread_run(), so instead of calling
__cpu_map_entry_replace() to stop kthread and cleanup entry after a RCU
grace period, do these things directly.
Signed-off-by: Hou Tao <houtao1@huawei.com>
Reviewed-by: Toke Høiland-Jørgensen <toke@redhat.com>
Link: https://lore.kernel.org/r/20230816045959.358059-3-houtao@huaweicloud.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'mm/huge_memory.c')
0 files changed, 0 insertions, 0 deletions