Re: [PATCH 07/11] cgroup: fetch cpu-specific lock in rstat cpu lock helpers

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

 



On Mon, Feb 17, 2025 at 07:14:44PM -0800, JP Kobryn wrote:
> The lock/unlock helper functions for per-cpu locks accept a cpu
> argument. This makes them appear as if the cpu will be used as the
> offset off of the base per-cpu pointer. But in fact, the cpu is only
> used as a tracepoint argument. Change the functions so that the cpu is
> also used primarily for looking up the lock specific to this cpu. This
> means the call sites can be adjusted to not have to perform the offset
> prior to calling this function. Note that this follows suit with other
> functions in the rstat source - functions that accept a cpu argument
> perform the per-cpu pointer lookup within as opposed to having clients
> lookup in advance.
> 
> Signed-off-by: JP Kobryn <inwardvessel@xxxxxxxxx>

Reviewed-by: Shakeel Butt <shakeel.butt@xxxxxxxxx>




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

  Powered by Linux