Thread (6 messages) 6 messages, 5 authors, 2021-08-02

Re: [PATCH] memcg: cleanup racy sum avoidance code

From: Roman Gushchin <hidden>
Date: 2021-07-28 02:36:20
Also in: cgroups, lkml

On Tue, Jul 27, 2021 at 06:22:43PM -0700, Shakeel Butt wrote:
We used to have per-cpu memcg and lruvec stats and the readers have to
traverse and sum the stats from each cpu. This summing was racy and may
expose transient negative values. So, an explicit check was added to
avoid such scenarios. Now these stats are moved to rstat infrastructure
and are no more per-cpu, so we can remove the fixup for transient
negative values.

Signed-off-by: Shakeel Butt <redacted>
Acked-by: Roman Gushchin <redacted>

Thanks!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help