Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 339323
b: refs/heads/master
c: eb6fd50
h: refs/heads/master
i:
  339321: 3aaf6f7
  339319: 99776a1
v: v3
  • Loading branch information
Tejun Heo committed Nov 9, 2012
1 parent 024f932 commit 0c7bb34
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a8638030f668884720b8f4456448d0ce33952b05
refs/heads/master: eb6fd5040ee799009173daa49c3e7aa0362167c9
1 change: 1 addition & 0 deletions trunk/include/linux/cgroup.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <linux/cpumask.h>
#include <linux/nodemask.h>
#include <linux/rcupdate.h>
#include <linux/rculist.h>
#include <linux/cgroupstats.h>
#include <linux/prio_heap.h>
#include <linux/rwsem.h>
Expand Down
8 changes: 3 additions & 5 deletions trunk/kernel/cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -1650,7 +1650,6 @@ static struct dentry *cgroup_mount(struct file_system_type *fs_type,

free_cg_links(&tmp_cg_links);

BUG_ON(!list_empty(&root_cgrp->sibling));
BUG_ON(!list_empty(&root_cgrp->children));
BUG_ON(root->number_of_cgroups != 1);

Expand Down Expand Up @@ -1699,7 +1698,6 @@ static void cgroup_kill_sb(struct super_block *sb) {

BUG_ON(root->number_of_cgroups != 1);
BUG_ON(!list_empty(&cgrp->children));
BUG_ON(!list_empty(&cgrp->sibling));

mutex_lock(&cgroup_mutex);
mutex_lock(&cgroup_root_mutex);
Expand Down Expand Up @@ -4052,7 +4050,7 @@ static long cgroup_create(struct cgroup *parent, struct dentry *dentry,
}
}

list_add(&cgrp->sibling, &cgrp->parent->children);
list_add_tail_rcu(&cgrp->sibling, &cgrp->parent->children);
root->number_of_cgroups++;

err = cgroup_create_dir(cgrp, dentry, mode);
Expand Down Expand Up @@ -4083,7 +4081,7 @@ static long cgroup_create(struct cgroup *parent, struct dentry *dentry,

err_remove:

list_del(&cgrp->sibling);
list_del_rcu(&cgrp->sibling);
root->number_of_cgroups--;

err_destroy:
Expand Down Expand Up @@ -4209,7 +4207,7 @@ static int cgroup_rmdir(struct inode *unused_dir, struct dentry *dentry)
raw_spin_unlock(&release_list_lock);

/* delete this cgroup from parent->children */
list_del_init(&cgrp->sibling);
list_del_rcu(&cgrp->sibling);

list_del_init(&cgrp->allcg_node);

Expand Down

0 comments on commit 0c7bb34

Please sign in to comment.