Re: [PATCH v2 1/2] cgroup: Add a hint to allow v1 controller to use v2 behavior

From: Tejun Heo
Date: Thu Aug 17 2017 - 14:48:54 EST


Hello, Waiman.

On Thu, Aug 17, 2017 at 02:25:38PM -0400, Waiman Long wrote:
> For some cgroup controllers, the behavior on cgroup v1 differs somewhat
> from cgroup v2. To indicate that a controller can use v2 behavior
> in cgroup v1, a new cgroupfs mount option "v2_mode" is added. This
> is essentially a hint, there is no obligation for a controller to
> comply with this semantics.

Heh, I don't think we can make it a generic flag. We can't have one
kernel interpreting the option one way and later kernels doing
differently. Let's just make it cpuset specific - something like
cpuset_v2_mode.

Thanks.

--
tejun