diff options
author | Vladimir Davydov <vdavydov@virtuozzo.com> | 2016-08-12 00:33:03 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-08-12 01:58:13 +0200 |
commit | 615d66c37c755c49ce022c9e5ac0875d27d2603d (patch) | |
tree | a334291007e7fab20c84bb48010a0f5e6e7d7a5d /mm/kasan/quarantine.c | |
parent | mm: memcontrol: fix swap counter leak on swapout from offline cgroup (diff) | |
download | linux-615d66c37c755c49ce022c9e5ac0875d27d2603d.tar.xz linux-615d66c37c755c49ce022c9e5ac0875d27d2603d.zip |
mm: memcontrol: fix memcg id ref counter on swap charge move
Since commit 73f576c04b94 ("mm: memcontrol: fix cgroup creation failure
after many small jobs") swap entries do not pin memcg->css.refcnt
directly. Instead, they pin memcg->id.ref. So we should adjust the
reference counters accordingly when moving swap charges between cgroups.
Fixes: 73f576c04b941 ("mm: memcontrol: fix cgroup creation failure after many small jobs")
Link: http://lkml.kernel.org/r/9ce297c64954a42dc90b543bc76106c4a94f07e8.1470219853.git.vdavydov@virtuozzo.com
Signed-off-by: Vladimir Davydov <vdavydov@virtuozzo.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: <stable@vger.kernel.org> [3.19+]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/kasan/quarantine.c')
0 files changed, 0 insertions, 0 deletions