From: Aleksa Sarai <cyphar@cyphar.com>
To: tj@kernel.org, lizefan@huawei.com, mingo@redhat.com,
peterz@infradead.org
Cc: richard@nod.at, fweisbec@gmail.com, linux-kernel@vger.kernel.org,
cgroups@vger.kernel.org, Aleksa Sarai <cyphar@cyphar.com>
Subject: [PATCH v13 0/5] cgroup: add PIDs subsystem
Date: Sat, 6 Jun 2015 09:42:11 +1000 [thread overview]
Message-ID: <1433547736-11707-1-git-send-email-cyphar@cyphar.com> (raw)
This is a small update to v12 of the pids patchset[1] (most of which was
merged into Tejun's tree, but was later reverted due to some bogus GCC
warnings). The main changes are:
* Fix up include/linux/cgroup.h changes to take into account Tejun's
refactoring of cgroup.h into cgroup-defs.h.
* Move ->can_attach() and ->cancel_attach() charge/revert into
->attach(), since we can't fail and it's simpler to just charge there.
* Remove tset_get_css(), because the premise of its existence is flawed
and switch ->attach() code to just task_get_css() itself.
* Remove a patch that was rendered uneccesary by the cgroup.h refactor.
* Fix up the for_each_subsys_which patchset so that it doesn't trigger
a GCC warning when CGROUP_SUBSYS_COUNT = 0, but cgroups are enabled.
The warning is bogus anyway, since the whole block becomes a noop in
that case.
[1]: https://lkml.org/lkml/2015/5/18/439
Aleksa Sarai (4):
cgroup: use bitmask to filter for_each_subsys
cgroup: replace explicit ss_mask checking with for_each_subsys_which
cgroup: allow a cgroup subsystem to reject a fork
cgroup: implement the PIDs subsystem
Tejun Heo (1):
cgroup, block: implement task_get_css()
CREDITS | 5 +
include/linux/cgroup-defs.h | 12 +-
include/linux/cgroup.h | 41 ++++-
include/linux/cgroup_subsys.h | 28 ++++
init/Kconfig | 16 ++
kernel/Makefile | 1 +
kernel/cgroup.c | 171 +++++++++++++------
kernel/cgroup_freezer.c | 2 +-
kernel/cgroup_pids.c | 377 ++++++++++++++++++++++++++++++++++++++++++
kernel/fork.c | 17 +-
kernel/sched/core.c | 2 +-
11 files changed, 616 insertions(+), 56 deletions(-)
create mode 100644 kernel/cgroup_pids.c
--
2.4.2
next reply other threads:[~2015-06-05 23:42 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-05 23:42 Aleksa Sarai [this message]
2015-06-06 0:02 ` [PATCH v13 1/5] cgroup: use bitmask to filter for_each_subsys Aleksa Sarai
2015-06-06 0:02 ` [PATCH v13 2/5] cgroup: replace explicit ss_mask checking with for_each_subsys_which Aleksa Sarai
2015-06-08 9:21 ` Tejun Heo
2015-06-06 0:02 ` [PATCH v13 3/5] cgroup, block: implement task_get_css() Aleksa Sarai
2015-06-08 9:22 ` Tejun Heo
2015-06-06 0:02 ` [PATCH v13 4/5] cgroup: allow a cgroup subsystem to reject a fork Aleksa Sarai
2015-06-09 4:41 ` Tejun Heo
2015-06-09 7:20 ` Aleksa Sarai
2015-06-09 7:23 ` Tejun Heo
2015-06-06 0:02 ` [PATCH v13 5/5] cgroup: implement the PIDs subsystem Aleksa Sarai
2015-06-09 4:56 ` 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=1433547736-11707-1-git-send-email-cyphar@cyphar.com \
--to=cyphar@cyphar.com \
--cc=cgroups@vger.kernel.org \
--cc=fweisbec@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lizefan@huawei.com \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=richard@nod.at \
--cc=tj@kernel.org \
/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
all inboxes | Powered by JetHome®