Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1224445
| From | Tejun Heo <tj@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 2/5] cgroup, memcg, cpuset: implement cgroup_taskset_for_each_leader() |
| Date | 2015-09-14 22:50 +0200 |
| Message-ID | <q8IRk-qR-13@gated-at.bofh.it> (permalink) |
| References | <q7BRU-2f9-11@gated-at.bofh.it> <q7BRU-2f9-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, Sep 11, 2015 at 03:00:19PM -0400, Tejun Heo wrote: > It wasn't explicitly documented but, when a process is being migrated, > cpuset and memcg depend on cgroup_taskset_first() returning the > threadgroup leader; however, this approach is somewhat ghetto and > would no longer work for the planned multi-process migration. > > This patch introduces explicit cgroup_taskset_for_each_leader() which > iterates over only the threadgroup leaders and replaces > cgroup_taskset_first() usages for accessing the leader with it. > > This prepares both memcg and cpuset for multi-process migration. This > patch also updates the documentation for cgroup_taskset_for_each() to > clarify the iteration rules and removes comments mentioning task > ordering in tasksets. > > v2: A previous patch which added threadgroup leader test was dropped. > Patch updated accordingly. > > Signed-off-by: Tejun Heo <tj@kernel.org> > Acked-by: Zefan Li <lizefan@huawei.com> > Cc: Johannes Weiner <hannes@cmpxchg.org> > Cc: Michal Hocko <mhocko@suse.cz> Michal, if you're okay with this patch, I'll apply the patchset in cgroup/for-4.4. Thanks. -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 2/5] cgroup, memcg, cpuset: implement cgroup_taskset_for_each_leader() Tejun Heo <tj@kernel.org> - 2015-09-11 21:10 +0200
Re: [PATCH 2/5] cgroup, memcg, cpuset: implement cgroup_taskset_for_each_leader() Tejun Heo <tj@kernel.org> - 2015-09-14 22:50 +0200
Re: [PATCH 2/5] cgroup, memcg, cpuset: implement cgroup_taskset_for_each_leader() Tejun Heo <tj@kernel.org> - 2015-09-18 18:10 +0200
csiph-web