summaryrefslogtreecommitdiffstats
path: root/mm/memcontrol.c
diff options
context:
space:
mode:
authorHugh Dickins2012-03-22 00:34:21 +0100
committerLinus Torvalds2012-03-22 01:55:01 +0100
commitca464d69b19120a826aa2534de2511a6f542edf5 (patch)
tree092582419a30825b8483640856483ea8ee56cf81 /mm/memcontrol.c
parentcgroup: revert ss_id_lock to spinlock (diff)
downloadkernel-qcow2-linux-ca464d69b19120a826aa2534de2511a6f542edf5.tar.gz
kernel-qcow2-linux-ca464d69b19120a826aa2534de2511a6f542edf5.tar.xz
kernel-qcow2-linux-ca464d69b19120a826aa2534de2511a6f542edf5.zip
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 <hughd@google.com> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Acked-by: Li Zefan <lizf@cn.fujitsu.com> Cc: Eric Dumazet <eric.dumazet@gmail.com> Acked-by: Tejun Heo <tj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memcontrol.c')
0 files changed, 0 insertions, 0 deletions