diff options
author | KAMEZAWA Hiroyuki <[email protected]> | 2010-05-11 14:06:59 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2010-05-11 17:33:42 -0700 |
commit | 747388d78a0ae768fd82b55c4ed38aa646a72364 (patch) | |
tree | 03efabf9761209cffef4e8da9b6989887f76428e /lib/flex_array.c | |
parent | 7f0f15464185a92f9d8791ad231bcd7bf6df54e4 (diff) |
memcg: fix css_is_ancestor() RCU locking
Some callers (in memcontrol.c) calls css_is_ancestor() without
rcu_read_lock. Because css_is_ancestor() has to access RCU protected
data, it should be under rcu_read_lock().
This makes css_is_ancestor() itself does safe access to RCU protected
area. (At least, "root" can have refcnt==0 if it's not an ancestor of
"child". So, we need rcu_read_lock().)
Signed-off-by: KAMEZAWA Hiroyuki <[email protected]>
Cc: "Paul E. McKenney" <[email protected]>
Cc: Daisuke Nishimura <[email protected]>
Cc: Balbir Singh <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/flex_array.c')
0 files changed, 0 insertions, 0 deletions