]> Git Repo - linux.git/commit
mm: memcontrol: fix memcg id ref counter on swap charge move
authorVladimir Davydov <[email protected]>
Thu, 11 Aug 2016 22:33:03 +0000 (15:33 -0700)
committerLinus Torvalds <[email protected]>
Thu, 11 Aug 2016 23:58:13 +0000 (16:58 -0700)
commit615d66c37c755c49ce022c9e5ac0875d27d2603d
treea334291007e7fab20c84bb48010a0f5e6e7d7a5d
parent1f47b61fb4077936465dcde872a4e5cc4fe708da
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 <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Cc: <[email protected]> [3.19+]
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/memcontrol.c
This page took 0.053273 seconds and 4 git commands to generate.