Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1159782

[PATCH v13 0/5] cgroup: add PIDs subsystem

From Aleksa Sarai <cyphar@cyphar.com>
Newsgroups linux.kernel
Subject [PATCH v13 0/5] cgroup: add PIDs subsystem
Date 2015-06-06 01:50 +0200
Message-ID <py9x7-7AM-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View 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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH v13 0/5] cgroup: add PIDs subsystem Aleksa Sarai <cyphar@cyphar.com> - 2015-06-06 01:50 +0200
  [PATCH v13 3/5] cgroup, block: implement task_get_css() Aleksa Sarai <cyphar@cyphar.com> - 2015-06-06 02:10 +0200
  [PATCH v13 5/5] cgroup: implement the PIDs subsystem Aleksa Sarai <cyphar@cyphar.com> - 2015-06-06 02:10 +0200
    Re: [PATCH v13 5/5] cgroup: implement the PIDs subsystem Tejun Heo <tj@kernel.org> - 2015-06-09 07:00 +0200
  [PATCH v13 1/5] cgroup: use bitmask to filter for_each_subsys Aleksa Sarai <cyphar@cyphar.com> - 2015-06-06 02:10 +0200
  [PATCH v13 2/5] cgroup: replace explicit ss_mask checking with for_each_subsys_which Aleksa Sarai <cyphar@cyphar.com> - 2015-06-06 02:10 +0200
  [PATCH v13 4/5] cgroup: allow a cgroup subsystem to reject a fork Aleksa Sarai <cyphar@cyphar.com> - 2015-06-06 02:10 +0200
    Re: [PATCH v13 4/5] cgroup: allow a cgroup subsystem to reject a fork Tejun Heo <tj@kernel.org> - 2015-06-09 06:50 +0200
      Re: [PATCH v13 4/5] cgroup: allow a cgroup subsystem to reject a fork Aleksa Sarai <cyphar@cyphar.com> - 2015-06-09 09:30 +0200
        Re: [PATCH v13 4/5] cgroup: allow a cgroup subsystem to reject a fork Tejun Heo <tj@kernel.org> - 2015-06-09 09:30 +0200

csiph-web