]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - mm/memcontrol.c
mm: memcontrol: move obj_cgroup_uncharge_pages() out of css_set_lock
authorMuchun Song <songmuchun@bytedance.com>
Tue, 29 Jun 2021 02:38:06 +0000 (19:38 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Jun 2021 17:53:50 +0000 (10:53 -0700)
commit271dd6b1f636a99a3a77889935296c063f5a3cbe
tree122aad40b6fcb4b1bdc1d7ffeaf1e56309008335
parent9838354e16a2a920d5a228559850d10fa588a18d
mm: memcontrol: move obj_cgroup_uncharge_pages() out of css_set_lock

The css_set_lock is used to guard the list of inherited objcgs.  So there
is no need to uncharge kernel memory under css_set_lock.  Just move it out
of the lock.

Link: https://lkml.kernel.org/r/20210417043538.9793-8-songmuchun@bytedance.com
Signed-off-by: Muchun Song <songmuchun@bytedance.com>
Reviewed-by: Shakeel Butt <shakeelb@google.com>
Acked-by: Roman Gushchin <guro@fb.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Vladimir Davydov <vdavydov.dev@gmail.com>
Cc: Xiongchun Duan <duanxiongchun@bytedance.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c