aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-01-12 22:20:32 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2016-01-12 22:20:32 -0500
commit34a9304a96d6351c2d35dcdc9293258378fc0bd8 (patch)
tree8727c1177b86ca29e107c2e0972bbd956f2dee77 /kernel/fork.c
parentaee3bfa3307cd0da2126bdc0ea359dabea5ee8f7 (diff)
parent6255c46fa03798cbd8addd98929aff7eef86ae02 (diff)
Merge branch 'for-4.5' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup
Pull cgroup updates from Tejun Heo: - cgroup v2 interface is now official. It's no longer hidden behind a devel flag and can be mounted using the new cgroup2 fs type. Unfortunately, cpu v2 interface hasn't made it yet due to the discussion around in-process hierarchical resource distribution and only memory and io controllers can be used on the v2 interface at the moment. - The existing documentation which has always been a bit of mess is relocated under Documentation/cgroup-v1/. Documentation/cgroup-v2.txt is added as the authoritative documentation for the v2 interface. - Some features are added through for-4.5-ancestor-test branch to enable netfilter xt_cgroup match to use cgroup v2 paths. The actual netfilter changes will be merged through the net tree which pulled in the said branch. - Various cleanups * 'for-4.5' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup: cgroup: rename cgroup documentations cgroup: fix a typo. cgroup: Remove resource_counter.txt in Documentation/cgroup-legacy/00-INDEX. cgroup: demote subsystem init messages to KERN_DEBUG cgroup: Fix uninitialized variable warning cgroup: put controller Kconfig options in meaningful order cgroup: clean up the kernel configuration menu nomenclature cgroup_pids: fix a typo. Subject: cgroup: Fix incomplete dd command in blkio documentation cgroup: kill cgrp_ss_priv[CGROUP_CANFORK_COUNT] and friends cpuset: Replace all instances of time_t with time64_t cgroup: replace unified-hierarchy.txt with a proper cgroup v2 documentation cgroup: rename Documentation/cgroups/ to Documentation/cgroup-legacy/ cgroup: replace __DEVEL__sane_behavior with cgroup2 fs type
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 291b08cc817b..6774e6b2e96d 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1250,7 +1250,6 @@ static struct task_struct *copy_process(unsigned long clone_flags,
1250{ 1250{
1251 int retval; 1251 int retval;
1252 struct task_struct *p; 1252 struct task_struct *p;
1253 void *cgrp_ss_priv[CGROUP_CANFORK_COUNT] = {};
1254 1253
1255 if ((clone_flags & (CLONE_NEWNS|CLONE_FS)) == (CLONE_NEWNS|CLONE_FS)) 1254 if ((clone_flags & (CLONE_NEWNS|CLONE_FS)) == (CLONE_NEWNS|CLONE_FS))
1256 return ERR_PTR(-EINVAL); 1255 return ERR_PTR(-EINVAL);
@@ -1527,7 +1526,7 @@ static struct task_struct *copy_process(unsigned long clone_flags,
1527 * between here and cgroup_post_fork() if an organisation operation is in 1526 * between here and cgroup_post_fork() if an organisation operation is in
1528 * progress. 1527 * progress.
1529 */ 1528 */
1530 retval = cgroup_can_fork(p, cgrp_ss_priv); 1529 retval = cgroup_can_fork(p);
1531 if (retval) 1530 if (retval)
1532 goto bad_fork_free_pid; 1531 goto bad_fork_free_pid;
1533 1532
@@ -1609,7 +1608,7 @@ static struct task_struct *copy_process(unsigned long clone_flags,
1609 write_unlock_irq(&tasklist_lock); 1608 write_unlock_irq(&tasklist_lock);
1610 1609
1611 proc_fork_connector(p); 1610 proc_fork_connector(p);
1612 cgroup_post_fork(p, cgrp_ss_priv); 1611 cgroup_post_fork(p);
1613 threadgroup_change_end(current); 1612 threadgroup_change_end(current);
1614 perf_event_fork(p); 1613 perf_event_fork(p);
1615 1614
@@ -1619,7 +1618,7 @@ static struct task_struct *copy_process(unsigned long clone_flags,
1619 return p; 1618 return p;
1620 1619
1621bad_fork_cancel_cgroup: 1620bad_fork_cancel_cgroup:
1622 cgroup_cancel_fork(p, cgrp_ss_priv); 1621 cgroup_cancel_fork(p);
1623bad_fork_free_pid: 1622bad_fork_free_pid:
1624 if (pid != &init_struct_pid) 1623 if (pid != &init_struct_pid)
1625 free_pid(pid); 1624 free_pid(pid);