Skip to content
Commit c7ba8287 authored by Tejun Heo's avatar Tejun Heo
Browse files

cgroup: CGRP_ROOT_SUBSYS_BOUND should also be ignored when mounting an existing hierarchy



0ce6cba3 ("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: default avatarTejun Heo <tj@kernel.org>
parent 0ce6cba3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment