diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-09 15:59:24 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-09 15:59:24 -0500 |
commit | db0c2bf69aa095d4a6de7b1145f29fe9a7c0f6a3 (patch) | |
tree | 8f38957c01b18edddd44d49ecc3beeac08a20b4e /mm | |
parent | ac69e0928054ff29a5049902fb477f9c7605c773 (diff) | |
parent | 0d19ea866562e46989412a0676412fa0983c9ce7 (diff) |
Merge branch 'for-3.3' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup
* 'for-3.3' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup: (21 commits)
cgroup: fix to allow mounting a hierarchy by name
cgroup: move assignement out of condition in cgroup_attach_proc()
cgroup: Remove task_lock() from cgroup_post_fork()
cgroup: add sparse annotation to cgroup_iter_start() and cgroup_iter_end()
cgroup: mark cgroup_rmdir_waitq and cgroup_attach_proc() as static
cgroup: only need to check oldcgrp==newgrp once
cgroup: remove redundant get/put of task struct
cgroup: remove redundant get/put of old css_set from migrate
cgroup: Remove unnecessary task_lock before fetching css_set on migration
cgroup: Drop task_lock(parent) on cgroup_fork()
cgroups: remove redundant get/put of css_set from css_set_check_fetched()
resource cgroups: remove bogus cast
cgroup: kill subsys->can_attach_task(), pre_attach() and attach_task()
cgroup, cpuset: don't use ss->pre_attach()
cgroup: don't use subsys->can_attach_task() or ->attach_task()
cgroup: introduce cgroup_taskset and use it in subsys->can_attach(), cancel_attach() and attach()
cgroup: improve old cgroup handling in cgroup_attach_proc()
cgroup: always lock threadgroup during migration
threadgroup: extend threadgroup_lock() to cover exit and exec
threadgroup: rename signal->threadgroup_fork_lock to ->group_rwsem
...
Fix up conflict in kernel/cgroup.c due to commit e0197aae59e5: "cgroups:
fix a css_set not found bug in cgroup_attach_proc" that already
mentioned that the bug is fixed (differently) in Tejun's cgroup
patchset. This one, in other words.
Diffstat (limited to 'mm')
-rw-r--r-- | mm/memcontrol.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 94da8ee9e2c2..00d4fa27d3e6 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c | |||
@@ -5391,8 +5391,9 @@ static void mem_cgroup_clear_mc(void) | |||
5391 | 5391 | ||
5392 | static int mem_cgroup_can_attach(struct cgroup_subsys *ss, | 5392 | static int mem_cgroup_can_attach(struct cgroup_subsys *ss, |
5393 | struct cgroup *cgroup, | 5393 | struct cgroup *cgroup, |
5394 | struct task_struct *p) | 5394 | struct cgroup_taskset *tset) |
5395 | { | 5395 | { |
5396 | struct task_struct *p = cgroup_taskset_first(tset); | ||
5396 | int ret = 0; | 5397 | int ret = 0; |
5397 | struct mem_cgroup *memcg = mem_cgroup_from_cont(cgroup); | 5398 | struct mem_cgroup *memcg = mem_cgroup_from_cont(cgroup); |
5398 | 5399 | ||
@@ -5430,7 +5431,7 @@ static int mem_cgroup_can_attach(struct cgroup_subsys *ss, | |||
5430 | 5431 | ||
5431 | static void mem_cgroup_cancel_attach(struct cgroup_subsys *ss, | 5432 | static void mem_cgroup_cancel_attach(struct cgroup_subsys *ss, |
5432 | struct cgroup *cgroup, | 5433 | struct cgroup *cgroup, |
5433 | struct task_struct *p) | 5434 | struct cgroup_taskset *tset) |
5434 | { | 5435 | { |
5435 | mem_cgroup_clear_mc(); | 5436 | mem_cgroup_clear_mc(); |
5436 | } | 5437 | } |
@@ -5547,9 +5548,9 @@ retry: | |||
5547 | 5548 | ||
5548 | static void mem_cgroup_move_task(struct cgroup_subsys *ss, | 5549 | static void mem_cgroup_move_task(struct cgroup_subsys *ss, |
5549 | struct cgroup *cont, | 5550 | struct cgroup *cont, |
5550 | struct cgroup *old_cont, | 5551 | struct cgroup_taskset *tset) |
5551 | struct task_struct *p) | ||
5552 | { | 5552 | { |
5553 | struct task_struct *p = cgroup_taskset_first(tset); | ||
5553 | struct mm_struct *mm = get_task_mm(p); | 5554 | struct mm_struct *mm = get_task_mm(p); |
5554 | 5555 | ||
5555 | if (mm) { | 5556 | if (mm) { |
@@ -5564,19 +5565,18 @@ static void mem_cgroup_move_task(struct cgroup_subsys *ss, | |||
5564 | #else /* !CONFIG_MMU */ | 5565 | #else /* !CONFIG_MMU */ |
5565 | static int mem_cgroup_can_attach(struct cgroup_subsys *ss, | 5566 | static int mem_cgroup_can_attach(struct cgroup_subsys *ss, |
5566 | struct cgroup *cgroup, | 5567 | struct cgroup *cgroup, |
5567 | struct task_struct *p) | 5568 | struct cgroup_taskset *tset) |
5568 | { | 5569 | { |
5569 | return 0; | 5570 | return 0; |
5570 | } | 5571 | } |
5571 | static void mem_cgroup_cancel_attach(struct cgroup_subsys *ss, | 5572 | static void mem_cgroup_cancel_attach(struct cgroup_subsys *ss, |
5572 | struct cgroup *cgroup, | 5573 | struct cgroup *cgroup, |
5573 | struct task_struct *p) | 5574 | struct cgroup_taskset *tset) |
5574 | { | 5575 | { |
5575 | } | 5576 | } |
5576 | static void mem_cgroup_move_task(struct cgroup_subsys *ss, | 5577 | static void mem_cgroup_move_task(struct cgroup_subsys *ss, |
5577 | struct cgroup *cont, | 5578 | struct cgroup *cont, |
5578 | struct cgroup *old_cont, | 5579 | struct cgroup_taskset *tset) |
5579 | struct task_struct *p) | ||
5580 | { | 5580 | { |
5581 | } | 5581 | } |
5582 | #endif | 5582 | #endif |