Re: [RFC] [PATCH] cgroup: add "procs" control file

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul Menage
Date: Thursday, June 19, 2008 - 10:37 pm

On Wed, Jun 18, 2008 at 1:02 AM, Li Zefan <lizf@cn.fujitsu.com> wrote:

I think this is something that will have to be handled in the design
of transactional cgroup attach.


Sounds reasonable. I think that in general the procs file is more
useful as a write API than a read API anyway, for the reasons you
indicate there.



Should we check that this is in fact a thread group leader?


cgroup_attach_task() calls synchronize_rcu(), so it doesn't seem
likely that rcu_read_lock() is useful here, and might even deadlock?

What are you trying to protect against with the RCU lock?


Maybe call it "cgroup.procs" to avoid name clashes in future? We had a
debate a while back where I tried to get the cgroup files like "tasks"
and "notify_on_release" prefixed with "cgroup." , which were argued
against on grounds of backwards compatibility. But there's no
compatibility issue here. The only question is whether it's too ugly
to have the legacy filenames without a prefix and the new ones with a
prefix.

Paul
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC] [PATCH] cgroup: add &quot;procs&quot; control file, KAMEZAWA Hiroyuki, (Wed Jun 18, 5:14 pm)
Re: [RFC] [PATCH] cgroup: add &quot;procs&quot; control file, KAMEZAWA Hiroyuki, (Wed Jun 18, 8:17 pm)
Re: [RFC] [PATCH] cgroup: add "procs" control file, Paul Menage, (Thu Jun 19, 10:37 pm)