Re: [PATCH] sched: partly revert "sched debug: remove NULLchecking in print_cfs_rt_rq()"

From: Ingo Molnar
Date: Sat Jan 10 2009 - 20:41:10 EST



* Li Zefan <lizf@xxxxxxxxxxxxxx> wrote:

> 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@xxxxxxxxxxxxxx>
> ---
> kernel/sched_debug.c | 21 +++++++++++++++++----
> 1 files changed, 17 insertions(+), 4 deletions(-)

applied to tip/sched/urgent, thanks!

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/