]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Merge branch 'for-3.10-fixes' into for-next
authorTejun Heo <tj@kernel.org>
Tue, 28 May 2013 22:59:56 +0000 (07:59 +0900)
committerTejun Heo <tj@kernel.org>
Tue, 28 May 2013 22:59:56 +0000 (07:59 +0900)
1  2 
kernel/cgroup.c

diff --cc kernel/cgroup.c
index fefc41c1a147fa6a3ff64c185aaf045974dfadb3,a7c9e6ddb9797a886e96bbff7c75fb8ed9670c68..d4ddc106c805cc0b972301fc5412663ee4dd9fe7
@@@ -1686,13 -1684,16 +1686,16 @@@ static struct dentry *cgroup_mount(stru
                 * We re-used an existing hierarchy - the new root (if
                 * any) is not needed
                 */
 -              cgroup_drop_root(opts.new_root);
 +              cgroup_free_root(opts.new_root);
  
-               if (((root->flags | opts.flags) & CGRP_ROOT_SANE_BEHAVIOR) &&
-                   root->flags != opts.flags) {
-                       pr_err("cgroup: sane_behavior: new mount options should match the existing superblock\n");
-                       ret = -EINVAL;
-                       goto drop_new_super;
+               if (root->flags != opts.flags) {
+                       if ((root->flags | opts.flags) & CGRP_ROOT_SANE_BEHAVIOR) {
+                               pr_err("cgroup: sane_behavior: new mount options should match the existing superblock\n");
+                               ret = -EINVAL;
+                               goto drop_new_super;
+                       } else {
+                               pr_warning("cgroup: new mount options do not match the existing superblock, will be ignored\n");
+                       }
                }
  
                /* no subsys rebinding, so refcounts don't change */