lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAFLxGvzRG_zgG_4ym9CkTOr3kNzNb6zb553kgdy3jCeJSxAP9Q@mail.gmail.com>
Date:	Thu, 3 Nov 2011 18:31:23 +0100
From:	richard -rw- weinberger <richard.weinberger@...il.com>
To:	Max Kellermann <mk@...all.com>
Cc:	linux-kernel@...r.kernel.org,
	containers@...ts.linux-foundation.org, max@...mpel.org,
	menage@...gle.com
Subject: Re: [PATCH] new cgroup controller "fork"

On Thu, Nov 3, 2011 at 5:22 PM, Max Kellermann <mk@...all.com> wrote:
> +struct cgroup_fork {
> +       struct cgroup_subsys_state css;
> +
> +       /** protect the "remaining" attribute */
> +       spinlock_t lock;
> +
> +       /**
> +        * The remaining number of forks allowed.  -1 is the magic
> +        * value for "unlimited".
> +        */
> +       int remaining;
> +};

Wouldn't an atomic_t also do it?

-- 
Thanks,
//richard
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ