]> git.baikalelectronics.ru Git - kernel.git/commit
cgroups: annotate two variables with __read_mostly
authorLi Zefan <lizf@cn.fujitsu.com>
Fri, 25 Jul 2008 08:46:56 +0000 (01:46 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 25 Jul 2008 17:53:35 +0000 (10:53 -0700)
commit6ab6f1b4ba93d6762c0cc184f2dfe5e79fb97205
treef4a7d212cfef8889a60022c8ff3c9cfcf97962c2
parent9d685ce3eb4d88e0d9c15db0454e578fc52dfbcf
cgroups: annotate two variables with __read_mostly

- need_forkexit_callback will be read only after system boot.
- use_task_css_set_links will be read only after it's set.

And these 2 variables are checked when a new process is forked.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Paul Menage <menage@google.com>
Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/cgroup.c