The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v2 0/2] cpuset: Allow v2 behavior in v1 cgroup
@ 2017-08-17 18:25 Waiman Long
  2017-08-17 18:25 ` [PATCH v2 1/2] cgroup: Add a hint to allow v1 controller to use v2 behavior Waiman Long
  2017-08-17 18:25 ` [PATCH v2 2/2] cpuset: Allow v2 behavior in v1 cgroup Waiman Long
  0 siblings, 2 replies; 5+ messages in thread
From: Waiman Long @ 2017-08-17 18:25 UTC (permalink / raw)
  To: Tejun Heo, Li Zefan, Johannes Weiner; +Cc: linux-kernel, Waiman Long

v1->v2:
 - Drop the kernel command line option and use cgroupfs mount option
   instead to enable v2 controller behavior in v1 cgroup.

v1: https://lkml.org/lkml/2017/8/15/570

This patchset adds a new cgroupfs mount option "v2_mode" that serves
as a hint that a v1 controller can use v2 hehavior, if applicable.
The cpuset controller is then modified to observe this mode.

Patch 1 adds the v1 cgroupfs mount option "v2_mode" which set a flag
in the cgroup_root flags.

Patch 2 modifies the cpuset controller to check the cgroup_root flag
and switch to v2 behavior even in a v1 cgroup.

Waiman Long (2):
  cgroup: Add a hint to allow v1 controller to use v2 behavior
  cpuset: Allow v2 behavior in v1 cgroup

 include/linux/cgroup-defs.h |  5 +++++
 kernel/cgroup/cgroup-v1.c   |  6 ++++++
 kernel/cgroup/cpuset.c      | 33 ++++++++++++++++++++-------------
 3 files changed, 31 insertions(+), 13 deletions(-)

-- 
1.8.3.1

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

end of thread, other threads:[~2017-08-17 18:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-17 18:25 [PATCH v2 0/2] cpuset: Allow v2 behavior in v1 cgroup Waiman Long
2017-08-17 18:25 ` [PATCH v2 1/2] cgroup: Add a hint to allow v1 controller to use v2 behavior Waiman Long
2017-08-17 18:48   ` Tejun Heo
2017-08-17 18:56     ` Waiman Long
2017-08-17 18:25 ` [PATCH v2 2/2] cpuset: Allow v2 behavior in v1 cgroup Waiman Long

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