Skip to content

Commit 11c994d

Browse files
committed
Merge branch 'for-4.11-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup
Pull cgroup fix from Tejun Heo: "Unfortunately, the commit to fix the cgroup mount race in the previous pull request can lead to hangs. The original bug has been around for a while and isn't too likely to be triggered in usual use cases. Revert the commit for now" * 'for-4.11-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup: Revert "cgroup: avoid attaching a cgroup root to two different superblocks"
2 parents 032aaf3 + 330c418 commit 11c994d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/cgroup/cgroup-v1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,7 @@ struct dentry *cgroup1_mount(struct file_system_type *fs_type, int flags,
11461146
* path is super cold. Let's just sleep a bit and retry.
11471147
*/
11481148
pinned_sb = kernfs_pin_sb(root->kf_root, NULL);
1149-
if (IS_ERR_OR_NULL(pinned_sb) ||
1149+
if (IS_ERR(pinned_sb) ||
11501150
!percpu_ref_tryget_live(&root->cgrp.self.refcnt)) {
11511151
mutex_unlock(&cgroup_mutex);
11521152
if (!IS_ERR_OR_NULL(pinned_sb))

0 commit comments

Comments
 (0)