]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hugetlb/cgroup: assign the page hugetlb cgroup when we move the page to active list.
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Sat, 21 Jul 2012 00:54:05 +0000 (10:54 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Jul 2012 03:02:27 +0000 (13:02 +1000)
commitbf7072704d86fcfe8a507fc0840d9350b18ff70c
treec0e10d9ec4178fb68cda09c5142ad66c777f666c
parent8d81adccfc4db768174dcc296fc796ec2ae1e07a
hugetlb/cgroup: assign the page hugetlb cgroup when we move the page to active list.

A page's hugetlb cgroup assignment and movement to the active list should
occur with hugetlb_lock held.  Otherwise when we remove the hugetlb cgroup
we will iterate the active list and find pages with NULL hugetlb cgroup
values.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/hugetlb.c
mm/hugetlb_cgroup.c