Skip to contentSkip to conversation

cfq-iosched: Enable deep hierarchy in CGgroup

RFC PATCH New Gui Jianfeng 1 participant 1 message Nov 15, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

RFC PATCH 7/8 cfq-iosched: Enable deep hierarchy in CGgroup

Currenlty, only level 0 and 1 CGroup directory is allowed to be created. This patch enables deep hierarchy in CGgroup.

---
 block/blk-cgroup.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
block/blk-cgroup.c +0 -4
index b1febd0..455768a 100644
@@ -1452,10 +1452,6 @@ blkiocg_create(struct cgroup_subsys *subsys, struct cgroup *cgroup)
 		goto done;
 	}
 
-	/* Currently we do not support hierarchy deeper than two level (0,1) */
-	if (parent != cgroup->top_cgroup)
-		return ERR_PTR(-EPERM);
-
 	blkcg = kzalloc(sizeof(*blkcg), GFP_KERNEL);
 	if (!blkcg)
 		return ERR_PTR(-ENOMEM);
Signature · 1 line
1.6.5.2