From: KAMEZAWA Hiroyuki Date: Wed, 23 Mar 2011 23:42:18 +0000 (-0700) Subject: memcg: res_counter_read_u64(): fix potential races on 32-bit machines X-Git-Tag: v2.6.39-rc1~169 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c191cd01a935e5b53ef43c9403c771bb7a32b60;p=pandora-kernel.git memcg: res_counter_read_u64(): fix potential races on 32-bit machines res_counter_read_u64 reads u64 value without lock. It's dangerous in a 32bit environment. Add locking. Signed-off-by: KAMEZAWA Hiroyuki Cc: Greg Thelen Cc: Johannes Weiner Cc: David Rientjes Cc: KOSAKI Motohiro Cc: Minchan Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed