Re: [PATCH bpf-next v3 0/7] bpf: Fixes for per-cpu kptr

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello:

This series was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@xxxxxxxxxx>:

On Fri, 20 Oct 2023 21:31:55 +0800 you wrote:
> From: Hou Tao <houtao1@xxxxxxxxxx>
> 
> Hi,
> 
> The patchset aims to fix the problems found in the review of per-cpu
> kptr patch-set [0]. Patch #1 moves pcpu_lock after the invocation of
> pcpu_chunk_addr_search() and it is a micro-optimization for
> free_percpu(). The reason includes it in the patch is that the same
> logic is used in newly-added API pcpu_alloc_size(). Patch #2 introduces
> pcpu_alloc_size() for dynamic per-cpu area. Patch #2 and #3 use
> pcpu_alloc_size() to check whether or not unit_size matches with the
> size of underlying per-cpu area and to select a matching bpf_mem_cache.
> Patch #4 fixes the freeing of per-cpu kptr when these kptrs are freed by
> map destruction. The last patch adds test cases for these problems.
> 
> [...]

Here is the summary with links:
  - [bpf-next,v3,1/7] mm/percpu.c: don't acquire pcpu_lock for pcpu_chunk_addr_search()
    https://git.kernel.org/bpf/bpf-next/c/394e6869f018
  - [bpf-next,v3,2/7] mm/percpu.c: introduce pcpu_alloc_size()
    https://git.kernel.org/bpf/bpf-next/c/5897c912a66b
  - [bpf-next,v3,3/7] bpf: Re-enable unit_size checking for global per-cpu allocator
    https://git.kernel.org/bpf/bpf-next/c/fd496368ab75
  - [bpf-next,v3,4/7] bpf: Use pcpu_alloc_size() in bpf_mem_free{_rcu}()
    https://git.kernel.org/bpf/bpf-next/c/f6bbb0c00203
  - [bpf-next,v3,5/7] bpf: Move the declaration of __bpf_obj_drop_impl() to bpf.h
    https://git.kernel.org/bpf/bpf-next/c/c999470ea070
  - [bpf-next,v3,6/7] bpf: Use bpf_global_percpu_ma for per-cpu kptr in __bpf_obj_drop_impl()
    https://git.kernel.org/bpf/bpf-next/c/710701945f97
  - [bpf-next,v3,7/7] selftests/bpf: Add more test cases for bpf memory allocator
    https://git.kernel.org/bpf/bpf-next/c/30c44ceada16

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html






[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux