public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] cgroup: substitude per-cgroup id with per-subsys id
@ 2014-04-22  6:30 Jianyu Zhan
  2014-04-22  6:30 ` [PATCH 1/4] cgroup: introduce helper css_to_id() Jianyu Zhan
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Jianyu Zhan @ 2014-04-22  6:30 UTC (permalink / raw)
  To: tj, lizefan, nasa4836; +Cc: containers, cgroups, linux-kernel

Currently, cgrp->id is only used to look up css's.  As cgroup and
css's lifetimes is now decoupled, it should be made per-subsystem
and moved to css->css_id so that lookups are successful until the
target css is released.

Patch 1-3 are prep patches.
Patch 4 do the coverting job.

Thanks!

Jianyu Zhan (4):
  cgroup: introduce helper css_to_id()
  mm/memcontrol.c: use accessor to get id from css
  netprio_cgroup: use accessor to get id from css
  cgroup: convert from per-cgroup id to per-subsys id

 include/linux/cgroup.h    | 27 ++++++-------
 kernel/cgroup.c           | 96 +++++++++++++++++++++++++----------------------
 mm/memcontrol.c           |  8 ++--
 net/core/netprio_cgroup.c |  8 ++--
 4 files changed, 74 insertions(+), 65 deletions(-)

-- 
2.0.0-rc0


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2014-04-23  6:41 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-22  6:30 [PATCH 0/4] cgroup: substitude per-cgroup id with per-subsys id Jianyu Zhan
2014-04-22  6:30 ` [PATCH 1/4] cgroup: introduce helper css_to_id() Jianyu Zhan
2014-04-22 20:31   ` Tejun Heo
2014-04-22  6:30 ` [PATCH 2/4] mm/memcontrol.c: use accessor to get id from css Jianyu Zhan
2014-04-22  7:03   ` Jianyu Zhan
2014-04-22  8:08   ` Jianyu Zhan
2014-04-22 10:01   ` Michal Hocko
     [not found]   ` <20140422124920.e22ed65d33d2b982ef467372@linux-foundation.org>
2014-04-23  6:41     ` Jianyu Zhan
2014-04-22  6:31 ` [PATCH 3/4] netprio_cgroup: " Jianyu Zhan
2014-04-22 11:27   ` Neil Horman
2014-04-22 20:33   ` Tejun Heo
2014-04-22  6:31 ` [PATCH 4/4] cgroup: convert from per-cgroup id to per-subsys id Jianyu Zhan
2014-04-22  8:03 ` Jianyu Zhan
2014-04-22 20:36   ` Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox