sched: partly revert "sched debug: remove NULL checking in print_cfs_rt_rq()"
authorLi Zefan <lizf@cn.fujitsu.com>
Sat, 10 Jan 2009 07:43:15 +0000 (15:43 +0800)
committerIngo Molnar <mingo@elte.hu>
Sun, 11 Jan 2009 01:40:32 +0000 (02:40 +0100)
commit805194c35b91999b139e4d6b6145f4f84fd4c814
tree7530c66ec53045858bba70ad8f1c626c450d12cc
parent62ea9ceb17a74bc7544211bfeecf4170c554ac4f
sched: partly revert "sched debug: remove NULL checking in print_cfs_rt_rq()"

Impact: avoid accessing NULL tg.css->cgroup

In commit 0a0db8f5c9d4bbb9bbfcc2b6cb6bce2d0ef4d73d, I removed checking
NULL tg.css->cgroup, but I realized I was wrong when I found reading
/proc/sched_debug can race with cgroup_create().

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_debug.c