From: Johannes Weiner Date: Thu, 20 Jan 2011 22:44:31 +0000 (-0800) Subject: memcg: correctly order reading PCG_USED and pc->mem_cgroup X-Git-Tag: v2.6.38-rc2~19^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=713735b4233fad3ae35b5cad656baa41413887ca;p=pandora-kernel.git memcg: correctly order reading PCG_USED and pc->mem_cgroup The placement of the read-side barrier is confused: the writer first sets pc->mem_cgroup, then PCG_USED. The read-side barrier has to be between testing PCG_USED and reading pc->mem_cgroup. Signed-off-by: Johannes Weiner Acked-by: KAMEZAWA Hiroyuki Acked-by: Daisuke Nishimura Cc: Balbir Singh Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed