[PATCH 3/4] Add a back-pointer from struct cg_cgroup_link to struct cgroup

Paul Menage menage at google.com
Thu Jul 23 07:31:34 PDT 2009


On Wed, Jul 22, 2009 at 11:44 PM, Li Zefan<lizf at cn.fujitsu.com> wrote:
>
> I think we need to cgroup_enable_task_cg_lists():
>
>        if (!use_task_css_set_links)
>                cgroup_enable_task_cg_lists();
>
> Otherwise we'll see no tasks when reading this debug file
> if use_task_css_set_links == 0.
>

I think that's OK - the debug file should indicate the state of the
kernel, not alter it. If there are no links, then no links should be
printed.

Paul


More information about the Containers mailing list