mm/memcg: Fix a lockdep splat in memory cgroup
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2046537
MR: !597 (merged)
The lockdep splat described in BZ #2046537 is caused by the fact that the memory cgroup uses css_set_lock to synchronize accesses and changes to the obj_cgroup list. This lockdep problem is fixed in patch 4 by using a new dedicated objcg_lock for the same synchronization purpose. Patches 1-3 are included to eliminate merge conflicts and fuzzes.
Signed-off-by: Waiman Long longman@redhat.com
Waiman Long (4):
mm/memcg: remove obsolete memcg_free_kmem()
mm: memcontrol: remove kmemcg_id reparenting
mm: memcontrol: remove the kmem states
mm: memcg: synchronize objcg lists with a dedicated spinlock
include/linux/memcontrol.h | 12 +++------
mm/memcontrol.c | 50 +++++++++++---------------------------
2 files changed, 17 insertions(+), 45 deletions(-)