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 _______________________________________________ Containers mailing list Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linuxfoundation.org/mailman/listinfo/containers