Re: [PATCH] task containersv11 add tasks file interface fix for cpusets

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul Menage
Date: Wednesday, October 3, 2007 - 1:31 pm

On 10/3/07, Paul Jackson <pj@sgi.com> wrote:

It's not minor for any subsystem that has a non-trivial attach() operation.


What was wrong with my suggestion from a couple of emails back? Adding
the following in cpuset_attach():

struct cgroup_iter it;
struct task_struct *p;
while ((p = cgroup_iter_next(cs->css.cgroup, &it))) {
       set_cpus_allowed(p, cs->cpus_allowed);
}
cgroup_iter_end(cs->css.cgroup, &it);

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

Messages in current thread:
Re: [PATCH] task containersv11 add tasks file interface fi ..., Paul Menage, (Wed Oct 3, 1:31 pm)
Re: [PATCH] task containersv11 add tasks file interface fi ..., Eric W. Biederman, (Thu Oct 11, 4:20 pm)