From: Hugh Dickins Date: Wed, 21 Mar 2012 23:34:21 +0000 (-0700) Subject: memcg: let css_get_next() rely upon rcu_read_lock() X-Git-Tag: v3.4-rc1~158^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca464d69b19120a826aa2534de2511a6f542edf5;p=pandora-kernel.git memcg: let css_get_next() rely upon rcu_read_lock() Remove lock and unlock around css_get_next()'s call to idr_get_next(). memcg iterators (only users of css_get_next) already did rcu_read_lock(), and its comment demands that; but add a WARN_ON_ONCE to make sure of it. Signed-off-by: Hugh Dickins Acked-by: KAMEZAWA Hiroyuki Acked-by: Li Zefan Cc: Eric Dumazet Acked-by: Tejun Heo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed