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

Paul Menage menage at google.com
Wed Oct 3 13:58:26 PDT 2007


On 10/3/07, Paul Jackson <pj at sgi.com> wrote:
>
> But now (correct me if I'm wrong here) cgroups has a per-cgroup task
> list, and the above loop has cost linear in the number of tasks
> actually in the cgroup, plus (unfortunate but necessary and tolerable)
> the cost of taking a global css_set_lock, right?

Yes.

>
> And I take it the above code snipped is missing the cgroup_iter_start,
> correct?

Oops, yes.

Paul


More information about the Containers mailing list