Re: [PATCH bpf-next] bpf: Remove unnecessary cpu == 0 check in memalloc

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

 



Hello:

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

On Thu,  4 Jan 2024 08:57:44 -0800 you wrote:
> After merging the patch set [1] to reduce memory usage
> for bpf_global_percpu_ma, Alexei found a redundant check (cpu == 0)
> in function bpf_mem_alloc_percpu_unit_init() ([2]).
> Indeed, the check is unnecessary since c->unit_size will
> be all NULL or all non-NULL for all cpus before
> for_each_possible_cpu() loop.
> Removing the check makes code less confusing.
> 
> [...]

Here is the summary with links:
  - [bpf-next] bpf: Remove unnecessary cpu == 0 check in memalloc
    https://git.kernel.org/bpf/bpf-next/c/9ddf872b47e3

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






[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux