Re: [PATCH] cgroup: rstat: optimize flush through speculative test

Shakeel Butt
2021-10-04T18:35:12Z

On Mon, Oct 4, 2021 at 11:21 AM Tejun Heo <tj-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote:
>
>
[...]
> What do you think about that approach? While the proposed patch looks fine,
> it kinda bothers me that it's a very partial optimization - ie. if flush
> frequency is high enough for this to matter, that for_each_possible_cpu()
> scanning loop really isn't appropriate.
>

Makes sense. I will take a stab at that.