[Devel] Re: [PATCH v5 3/3] cgroups: make procs file writable
Ben Blum
bblum at andrew.cmu.edu
Mon Dec 27 02:37:01 PST 2010
On Mon, Dec 27, 2010 at 02:31:21AM -0800, David Rientjes wrote:
> On Sun, 26 Dec 2010, Ben Blum wrote:
>
> > I was going to make a macro like NODEMASK_STATIC, but it turned out that
> > can_attach() needed the to/from nodemasks to be shared among three
> > functions for the attaching, so I defined them globally without making a
> > macro for it.
>
> I'm not sure what the benefit of defining it as a macro would be. You're
> defining these statically allocated nodemasks so they have file scope, I
> hope (so they can be shared amongst the users who synchronize on
> cgroup_lock() already).
In the attach() case, yes, but in other cases I was thinking they could
be put on the stack if CONFIG_NODES_SHIFT < 8, and static but still
per-function otherwise. Or should all the functions share the same
global nodemask?
> > I can make a separate patch for fixing the other cases,
> > but I'd like to see my current patches through first. (Or should I make
> > a bugfix patch first and send my other ones on top of that?)
> >
>
> I don't think the fix is urgent since the NODEMASK_ALLOC()'s have been
> around since March and nobody has complained about the failures, I
> personally wouldn't delay your own development over something you've found
> only through code inspection. I think it's safe to defer to afterwards.
Thanks,
Ben
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list