]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: memcontrol: do not acquire page_cgroup lock for kmem pages
authorJohannes Weiner <hannes@cmpxchg.org>
Thu, 26 Jun 2014 00:42:38 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 26 Jun 2014 00:42:38 +0000 (10:42 +1000)
commit9fd2cd8611a3534db2600eda5abfc5d420eaa865
treef7c4c7e948710b78e9871f861fea67b65f4d579d
parent0ee27621253bb7683cf9a600183d335cdd252b78
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>
mm/memcontrol.c