Re: [PATCH] new cgroup controller "fork"
From: richard -rw- weinberger
Date: Thu Nov 03 2011 - 13:32:47 EST
On Thu, Nov 3, 2011 at 5:22 PM, Max Kellermann <mk@xxxxxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/