From: "Paul Menage" Subject: Re: [PATCH] task containersv11 add tasks file interface fix for cpusets Date: Wed, 3 Oct 2007 11:25:21 -0700 Message-ID: <6599ad830710031125v68aac64aic4ad7e5114fa8ac@mail.gmail.com> References: <20071003084241.24279.62099.sendpatchset@jackhammer.engr.sgi.com> <6599ad830710030851jb44f00ft9634f9381218b6e9@mail.gmail.com> <20071003105817.7adf6516.pj@sgi.com> <6599ad830710031110r1a74eafej56f20cc33e72ac81@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <6599ad830710031110r1a74eafej56f20cc33e72ac81@mail.gmail.com> Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org To: Paul Jackson Cc: akpm@linux-foundation.org, nickpiggin@yahoo.com.au, a.p.zijlstra@chello.nl, serue@us.ibm.com, clg@fr.ibm.com, linux-kernel@vger.kernel.org, ebiederm@xmission.com, rientjes@google.com, svaidy@linux.vnet.ibm.com, xemul@openvz.org, containers@lists.osdl.org, balbir@linux.vnet.ibm.com List-Id: containers.vger.kernel.org On 10/3/07, Paul Menage wrote: > > What's wrong with, in update_cpumask(), doing a loop across all > members of the cgroup and updating their cpus_allowed fields? i.e. something like: 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