diff options
author | Shakeel Butt <shakeelb@google.com> | 2019-08-31 02:04:53 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-08-31 04:00:50 +0300 |
commit | 6c1c280805ded72eceb2afc1a0d431b256608554 (patch) | |
tree | cfb60fe945fbd4a35efe7d97a554d7cd0e164d10 /drivers/bus/da8xx-mstpri.c | |
parent | d2e5fb927ee7f52c1fe2a98b554881e9dffd8514 (diff) | |
download | linux-6c1c280805ded72eceb2afc1a0d431b256608554.tar.xz |
mm: memcontrol: fix percpu vmstats and vmevents flush
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.
Link: http://lkml.kernel.org/r/20190829203110.129263-1-shakeelb@google.com
Fixes: bb65f89b7d3d ("mm: memcontrol: flush percpu vmevents before releasing memcg")
Fixes: c350a99ea2b1 ("mm: memcontrol: flush percpu vmstats before releasing memcg")
Signed-off-by: Shakeel Butt <shakeelb@google.com>
Acked-by: Roman Gushchin <guro@fb.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Vladimir Davydov <vdavydov.dev@gmail.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/bus/da8xx-mstpri.c')
0 files changed, 0 insertions, 0 deletions