Re: [PATCH 08/11] cgroup: rstat cpu lock indirection

Shakeel Butt
2025-02-22T00:18:52Z

On Mon, Feb 17, 2025 at 07:14:45PM -0800, JP Kobryn wrote:
> Where functions access the global per-cpu lock, change their signature
> to accept the lock instead as a paremeter. Change the code within these
> functions to only access the parameter. This indirection allows for
> future code to accept different locks, increasing extensibity. For
> example, a new lock could be added specifically for the bpf cgroups and
> it would not contend with the existing lock.
>
> Signed-off-by: JP Kobryn <inwardvessel@gmail.com>

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