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


Groups > linux.kernel > #1349430 > unrolled thread

[PATCH 1/4] cgroup: fix incorrect destination cgroup in cgroup_update_dfl_csses()

Started byTejun Heo <tj@kernel.org>
First post2016-03-03 18:30 +0100
Last post2016-03-03 18:30 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 1/4] cgroup: fix incorrect destination cgroup in cgroup_update_dfl_csses() Tejun Heo <tj@kernel.org> - 2016-03-03 18:30 +0100

#1349430 — [PATCH 1/4] cgroup: fix incorrect destination cgroup in cgroup_update_dfl_csses()

FromTejun Heo <tj@kernel.org>
Date2016-03-03 18:30 +0100
Subject[PATCH 1/4] cgroup: fix incorrect destination cgroup in cgroup_update_dfl_csses()
Message-ID<r8Fez-21e-25@gated-at.bofh.it>
cgroup_update_dfl_csses() should move each task in the subtree to
self; however, it was incorrectly calling cgroup_migrate_add_src()
with the root of the subtree as @dst_cgrp.  Fortunately,
cgroup_migrate_add_src() currently uses @dst_cgrp only to determine
the hierarchy and the bug doesn't cause any actual breakages.  Fix it.

Signed-off-by: Tejun Heo <tj@kernel.org>
---
 kernel/cgroup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index c63fce0..50879aa 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -2901,7 +2901,7 @@ static int cgroup_update_dfl_csses(struct cgroup *cgrp)
 		struct cgrp_cset_link *link;
 
 		list_for_each_entry(link, &dsct->cset_links, cset_link)
-			cgroup_migrate_add_src(link->cset, cgrp,
+			cgroup_migrate_add_src(link->cset, dsct,
 					       &preloaded_csets);
 	}
 	spin_unlock_bh(&css_set_lock);
-- 
2.5.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web