Re: [PATCH] sched: fix another race when reading /proc/sched_debug

From: Paul Menage
Date: Tue Dec 16 2008 - 04:24:03 EST


On Sun, Dec 14, 2008 at 5:50 PM, KAMEZAWA Hiroyuki
<kamezawa.hiroyu@xxxxxxxxxxxxxx> wrote:
>
> at creation:
> - cpu_cgroup_populate() should record "tg" that "this cgroup has valid dentry"
> at deletion

Wouldn't moving the call to cgroup_create_dir() to before doing
subsystem initialization fix this problem more straightforwardly? Then
by the time the cpu subsytem create() callback is called, dentry will
already be valid.

Paul
--
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/