Re: [PATCH] mm: memcontrol: fix percpu vmstats and vmevents flush

2019-08-29 Thread Michal Hocko
On Thu 29-08-19 13:31:10, Shakeel Butt wrote: > Instead of using raw_cpu_read() use per_cpu() to read the actual data of > the corresponding cpu otherwise we will be reading the data of the > current cpu for the number of online CPUs. > > Fixes: bb65f89b7d3d ("mm: memcontrol: flush percpu vmevents

Re: [PATCH] mm: memcontrol: fix percpu vmstats and vmevents flush

2019-08-29 Thread Roman Gushchin
On Thu, Aug 29, 2019 at 01:31:10PM -0700, Shakeel Butt wrote: > Instead of using raw_cpu_read() use per_cpu() to read the actual data of > the corresponding cpu otherwise we will be reading the data of the > current cpu for the number of online CPUs. > > Fixes: bb65f89b7d3d ("mm: memcontrol: flush

[PATCH] mm: memcontrol: fix percpu vmstats and vmevents flush

2019-08-29 Thread Shakeel Butt
Instead of using raw_cpu_read() use per_cpu() to read the actual data of the corresponding cpu otherwise we will be reading the data of the current cpu for the number of online CPUs. Fixes: bb65f89b7d3d ("mm: memcontrol: flush percpu vmevents before releasing memcg") Fixes: c350a99ea2b1 ("mm: mem