summaryrefslogtreecommitdiffstats
path: root/mm/oom_kill.c
diff options
context:
space:
mode:
authorLi Zefan <lizf@cn.fujitsu.com>2008-09-02 14:35:52 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-09-02 19:21:38 -0700
commit36fd71d293898a59b14e49da1f6e81c1a58f2035 (patch)
treee67d5a0f6fc6caa83558f57588d9f69a46e5f4c9 /mm/oom_kill.c
parent09a2910e54646f7a334702fbafa7a6129dc072e6 (diff)
downloadop-kernel-dev-36fd71d293898a59b14e49da1f6e81c1a58f2035.zip
op-kernel-dev-36fd71d293898a59b14e49da1f6e81c1a58f2035.tar.gz
devcgroup: fix race against rmdir()
During the use of a dev_cgroup, we should guarantee the corresponding cgroup won't be deleted (i.e. via rmdir). This can be done through css_get(&dev_cgroup->css), but here we can just get and use the dev_cgroup under rcu_read_lock. And also remove checking NULL dev_cgroup, it won't be NULL since a task always belongs to a cgroup. Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> Acked-by: Serge Hallyn <serue@us.ibm.com> Cc: Paul Menage <menage@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/oom_kill.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud