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 v11 0/7] cgroups: add pids subsystem
Date: Sat, 16 May 2015 14:13:34 +1000 [thread overview]
Message-ID: <1431749621-30451-1-git-send-email-cyphar@cyphar.com> (raw)
This is an updated version of v10 of the pids patchset[1], with a few
quite large-ish updates and improvments:
* Switch all internal cgroup.c bitmasks to use (unsigned long), modify
for_each_subsys_which() to use for_each_set_bit() [which required some
other changes]. Also modify for_each_subsys_which() to take the
pointer to the bitmask as an argument.
* Modify argument order of for_each_subsys_which() so that it follows
the kernel style of (cursors..., iterable).
* Make naming of prefork / canfork consistent such that all references
are canfork (such as CGROUP_CANFORK_*).
* A whole bunch of style and naming fixes.
* Remove ->detach and implement it using ->{can,cancel}_attach.
* Remove the cancelfork bitmask -- just do ss->cancel_fork checks since
it's not a hot path.
* Add subsys_canfork_private{,p}().
* Include Tejun's implementation of task_get_css()[2] so that fork()s
aren't failed because of a migration operation (which is guaranteed to
complete in constant time).
* Switch valid input value range for `pids.max` to [0, PIDS_MAX), to
make the interface more consistent (so that you can't input a value
that translates to "max" transparently).
* Fixed up a whole bunch of comments that were too pids-specific or not
explicit enough.
[1]: https://lkml.org/lkml/2015/4/19/39
[2]: http://lkml.kernel.org/g/1428350318-8215-8-git-send-email-tj@kernel.org
Aleksa Sarai (6):
cgroup: switch to unsigned long for bitmasks
cgroup: use bitmask to filter for_each_subsys
cgroup: replace explicit ss_mask checking with for_each_subsys_which
cgroup: move enum cgroup_subsys_id definition
cgroup: allow a cgroup subsystem to reject a fork
cgroup: implement the PIDs subsystem
Tejun Heo (1):
cgroup, block: implement task_get_css() and use it in
bio_associate_current()
CREDITS | 5 +
block/bio.c | 11 +-
include/linux/cgroup.h | 76 +++++++--
include/linux/cgroup_subsys.h | 22 +++
init/Kconfig | 16 ++
kernel/Makefile | 1 +
kernel/cgroup.c | 215 ++++++++++++++++--------
kernel/cgroup_freezer.c | 2 +-
kernel/cgroup_pids.c | 379 ++++++++++++++++++++++++++++++++++++++++++
kernel/fork.c | 17 +-
kernel/sched/core.c | 2 +-
11 files changed, 652 insertions(+), 94 deletions(-)
create mode 100644 kernel/cgroup_pids.c
--
2.4.1
next reply other threads:[~2015-05-16 4:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-16 4:13 Aleksa Sarai [this message]
2015-05-16 4:13 ` [PATCH v11 1/7] cgroup: switch to unsigned long for bitmasks Aleksa Sarai
2015-05-16 4:13 ` [PATCH v11 2/7] cgroup: use bitmask to filter for_each_subsys Aleksa Sarai
2015-05-16 4:13 ` [PATCH v11 3/7] cgroup: replace explicit ss_mask checking with for_each_subsys_which Aleksa Sarai
2015-05-16 4:13 ` [PATCH v11 4/7] cgroup, block: implement task_get_css() and use it in bio_associate_current() Aleksa Sarai
2015-05-16 4:13 ` [PATCH v11 5/7] cgroup: move enum cgroup_subsys_id definition Aleksa Sarai
2015-05-16 4:13 ` [PATCH v11 6/7] cgroup: allow a cgroup subsystem to reject a fork Aleksa Sarai
2015-05-16 4:13 ` [PATCH v11 7/7] cgroup: implement the PIDs subsystem Aleksa Sarai
2015-05-18 13:16 ` Aleksa Sarai
2015-06-05 19:57 ` Aleksa Sarai
2015-06-05 20:05 ` Aleksa Sarai
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=1431749621-30451-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®