]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bpf: Remove migrate_{disable|enable} from bpf_local_storage_alloc()
authorHou Tao <houtao1@huawei.com>
Wed, 8 Jan 2025 01:07:26 +0000 (09:07 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 9 Jan 2025 02:06:37 +0000 (18:06 -0800)
commit4855a75ebf485f74b06ba85b16b71c4b71a4086d
treea0f5fd1c3e0f60a58e978c5966ef97a276df690b
parent2269b32ab00e1be663b838a1eed14408cb9ba677
bpf: Remove migrate_{disable|enable} from bpf_local_storage_alloc()

These two callers of bpf_local_storage_alloc() are the same as
bpf_selem_alloc(): bpf_sk_storage_clone() and
bpf_local_storage_update(). The running contexts of these two callers
have already disabled migration, therefore, there is no need to add
extra migrate_{disable|enable} pair in bpf_local_storage_alloc().

Signed-off-by: Hou Tao <houtao1@huawei.com>
Link: https://lore.kernel.org/r/20250108010728.207536-15-houtao@huaweicloud.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/bpf_local_storage.c