]> git.baikalelectronics.ru Git - kernel.git/commit
cgroup: CGRP_ROOT_SUBSYS_BOUND should also be ignored when mounting an existing hierarchy
authorTejun Heo <tj@kernel.org>
Sat, 29 Jun 2013 21:06:10 +0000 (14:06 -0700)
committerTejun Heo <tj@kernel.org>
Sat, 29 Jun 2013 21:06:10 +0000 (14:06 -0700)
commitebc1b982a95c15bc1a85796ae337bd78509cf1b1
tree01d95c92da5a5fa321eb487a9716c443cef54e69
parent9b981557e177b3c658d6136c08a7a86b76bcc194
cgroup: CGRP_ROOT_SUBSYS_BOUND should also be ignored when mounting an existing hierarchy

9b981557e1 ("cgroup: CGRP_ROOT_SUBSYS_BOUND should be ignored when
comparing mount options") only updated the remount path but
CGRP_ROOT_SUBSYS_BOUND should also be ignored when comparing options
while mounting an existing hierarchy.  As option mismatch triggers a
warning but doesn't fail the mount without sane_behavior, this only
triggers a spurious warning message.

Fix it by only comparing CGRP_ROOT_OPTION_MASK bits when comparing new
and existing root options.

Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup.c