Messages in this thread | | | Date | Mon, 01 Apr 2013 14:03:26 +0900 | From | Kamezawa Hiroyuki <> | Subject | Re: [PATCH] memcg: take reference before releasing rcu_read_lock |
| |
(2013/03/29 19:28), Li Zefan wrote: > The memcg is not referenced, so it can be destroyed at anytime right > after we exit rcu read section, so it's not safe to access it. > > To fix this, we call css_tryget() to get a reference while we're still > in rcu read section. > > This also removes a bogus comment above __memcg_create_cache_enqueue(). > > Signed-off-by: Li Zefan <lizefan@huawei.com>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
| |