mm: memcontrol: do not acquire page_cgroup lock for kmem pages
authorJohannes Weiner <hannes@cmpxchg.org>
Wed, 6 Aug 2014 23:06:04 +0000 (16:06 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Aug 2014 01:01:17 +0000 (18:01 -0700)
commita840cda63e543d41270698525542a82b7a8a18d7
tree4e16e7a67514e3e3cbcd9368fdfeab8fd76f01f2
parent9a2385eef9f28fb5260c48c45fc8fe01f1da70a6
mm: memcontrol: do not acquire page_cgroup lock for kmem pages

Kmem page charging and uncharging is serialized by means of exclusive
access to the page.  Do not take the page_cgroup lock and don't set
pc->flags atomically.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Michal Hocko <mhocko@suse.cz>
Acked-by: Vladimir Davydov <vdavydov@parallels.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c