OpenVZ Forum


Home » Mailing lists » Devel » [RFC] cgroup basic comounting
Re: [RFC] cgroup basic comounting [message #44631 is a reply to message #44592] Fri, 16 December 2011 16:35 Go to previous messageGo to previous message
Paul Menage is currently offline  Paul Menage
Messages: 642
Registered: September 2006
Senior Member
On Fri, Dec 16, 2011 at 4:29 AM, Glauber Costa <glommer@parallels.com> wrote
> diff --git a/kernel/cgroup.c b/kernel/cgroup.c
> index 1fd7867..e894a4f 100644
> --- a/kernel/cgroup.c
> +++ b/kernel/cgroup.c
> @@ -1211,9 +1211,9 @@ static int parse_cgroupfs_options(char *data, struct cgroup_sb_opts *opts)
>                        set_bit(i, &opts->subsys_bits);
>                        one_ss = true;
>
> -                       break;
> +                       continue;
>                }
> -               if (i == CGROUP_SUBSYS_COUNT)
> +               if (opts->subsys_bits == 0)
>                        return -ENOENT;

This is broken - it will silently ignore unknown/misspelled subsystems
that are specified after a valid subsystem. Replacing the break with a
continue is harmless but doesn't make sense - if the token already
matched a subsystem name then it won't match any other subsystem.

What change are you actually trying to effect with this patch?

Paul
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: [PATCH 0/2] SYSCTL: export root handling routines
Next Topic: [PATCH] SUNRPC: search for service transports in network namespace context
Goto Forum:
  


Current Time: Sat Jul 19 01:12:50 GMT 2025

Total time taken to generate the page: 0.04192 seconds