From: Tejun Heo <tj@kernel.org>
To: lizefan@huawei.com, hannes@cmpxchg.org, a.p.zijlstra@chello.nl,
mingo@redhat.com, acme@kernel.org
Cc: linux-kernel@vger.kernel.org, cgroups@vger.kernel.org,
kernel-team@fb.com
Subject: Re: [PATCH 1/2] cgroup: implement cgroup_subsys->implicit_on_dfl
Date: Tue, 8 Mar 2016 10:59:13 -0500 [thread overview]
Message-ID: <20160308155913.GA3447@mtj.duckdns.org> (raw)
In-Reply-To: <1456351975-1899-2-git-send-email-tj@kernel.org>
On Wed, Feb 24, 2016 at 05:12:54PM -0500, Tejun Heo wrote:
> Some controllers, perf_event for now and possibly freezer in the
> future, don't really make sense to control explicitly through
> "cgroup.subtree_control". For example, the primary role of perf_event
> is identifying the cgroups of tasks; however, because the controller
> also keeps a small amount of state per cgroup, it can't be replaced
> with simple cgroup membership tests.
>
> This patch implements cgroup_subsys->implicit_on_dfl flag. When set,
> the controller is implicitly enabled on all cgroups on the v2
> hierarchy so that utility type controllers such as perf_event can be
> enabled and function transparently.
>
> An implicit controller doesn't show up in "cgroup.controllers" or
> "cgroup.subtree_control", is exempt from no internal process rule and
> can be stolen from the default hierarchy even if there are non-root
> csses.
>
> v2: Reimplemented on top of the recent updates to css handling and
> subsystem rebinding. Rebinding implicit subsystems is now a
> simple matter of exempting it from the busy subsystem check.
>
> Signed-off-by: Tejun Heo <tj@kernel.org>
Applying this one to cgroup/for-4.6. Waiting for the review of
userland part on the second patch.
Thanks.
--
tejun
next prev parent reply other threads:[~2016-03-08 15:59 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-24 22:12 [PATCHSET v2 cgroup/for-4.6] cgroup, perf_event: make perf_event work on v2 hierarchy Tejun Heo
2016-02-24 22:12 ` [PATCH 1/2] cgroup: implement cgroup_subsys->implicit_on_dfl Tejun Heo
2016-03-08 15:59 ` Tejun Heo [this message]
2016-02-24 22:12 ` [PATCH 2/2] cgroup, perf_event: make perf_event controller work on cgroup2 hierarchy Tejun Heo
2016-03-08 10:11 ` Peter Zijlstra
2017-01-29 19:35 ` [PATCH REPOST " Tejun Heo
2017-01-30 14:05 ` Arnaldo Carvalho de Melo
2017-01-30 15:07 ` Tejun Heo
2017-02-02 18:47 ` Tejun Heo
2016-03-03 15:06 ` [PATCHSET v2 cgroup/for-4.6] cgroup, perf_event: make perf_event work on v2 hierarchy Tejun Heo
2016-03-08 1:44 ` Tejun Heo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160308155913.GA3447@mtj.duckdns.org \
--to=tj@kernel.org \
--cc=a.p.zijlstra@chello.nl \
--cc=acme@kernel.org \
--cc=cgroups@vger.kernel.org \
--cc=hannes@cmpxchg.org \
--cc=kernel-team@fb.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lizefan@huawei.com \
--cc=mingo@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).