The patch titled cgroup: fix root_count when mount fails due to busy subsystem has been removed from the -mm tree. Its filename was cgroup-fix-root_count-when-mount-fails-due-to-busy-subsystem.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: cgroup: fix root_count when mount fails due to busy subsystem From: Paul Menage <menage@xxxxxxxxxx> root_count was being incremented in cgroup_get_sb() after all error checking was complete, but decremented in cgroup_kill_sb(), which can be called on a superblock that we gave up on due to an error. This patch changes cgroup_kill_sb() to only decrement root_count if the root was previously linked into the list of roots. Signed-off-by: Paul Menage <menage@xxxxxxxxxx> Tested-by: Serge Hallyn <serue@xxxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/cgroup.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff -puN kernel/cgroup.c~cgroup-fix-root_count-when-mount-fails-due-to-busy-subsystem kernel/cgroup.c --- a/kernel/cgroup.c~cgroup-fix-root_count-when-mount-fails-due-to-busy-subsystem +++ a/kernel/cgroup.c @@ -1115,8 +1115,10 @@ static void cgroup_kill_sb(struct super_ } write_unlock(&css_set_lock); - list_del(&root->root_list); - root_count--; + if (!list_empty(&root->root_list)) { + list_del(&root->root_list); + root_count--; + } mutex_unlock(&cgroup_mutex); _ Patches currently in -mm which might be from menage@xxxxxxxxxx are origin.patch linux-next.patch cgroups-fix-cgrouph-comments.patch relax-ns_can_attach-checks-to-allow-attaching-to-grandchild-cgroups.patch cpuset-fix-allocating-page-cache-slab-object-on-the-unallowed-node-when-memory-spread-is-set.patch cpuset-fix-allocating-page-cache-slab-object-on-the-unallowed-node-when-memory-spread-is-set-fix-2.patch add-a-refcount-check-in-dput.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html