From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753509AbdHQTd2 (ORCPT ); Thu, 17 Aug 2017 15:33:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38604 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753398AbdHQTdW (ORCPT ); Thu, 17 Aug 2017 15:33:22 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 89EB5C08A42D Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=longman@redhat.com From: Waiman Long To: Tejun Heo , Li Zefan , Johannes Weiner Cc: linux-kernel@vger.kernel.org, Waiman Long Subject: [PATCH v3 0/2] cpuset: Allow v2 behavior in v1 cgroup Date: Thu, 17 Aug 2017 15:33:08 -0400 Message-Id: <1502998390-25283-1-git-send-email-longman@redhat.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Thu, 17 Aug 2017 19:33:22 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v2->v3: - Change the generic CGRP_ROOT_V2_MODE flag to a cpuset specific CGRP_ROOT_CPUSET_V2_MODE flag. 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 "cpuset_v2_mode" that enables the cpuset controller to use v2 behavior in a v1 cgroup. Patch 1 adds the v1 cgroupfs mount option "cpuset_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 mount flag to enable cpuset to use v2 behavior in v1 cgroup 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