diff options
author | Li Zefan <[email protected]> | 2013-04-29 15:08:57 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2013-04-29 15:54:40 -0700 |
commit | ca0dde97178e75ed1370b8616326f5496a803d65 (patch) | |
tree | b16a3376d70d0da276ee77a86a0c57c4acd7d457 /lib/mpi/mpi-bit.c | |
parent | ebff7d8f270d045338d9f4796014f4db429a17f9 (diff) |
memcg: take reference before releasing rcu_read_lock
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 <[email protected]>
Acked-by: Glauber Costa <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Acked-by: KAMEZAWA Hiroyuki <[email protected]>
Cc: Johannes Weiner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions