[Devel] Re: [PATCH v5 3/3] cgroups: make procs file writable

David Rientjes rientjes at google.com
Fri Dec 24 13:34:06 PST 2010


On Fri, 24 Dec 2010, Ben Blum wrote:

> Oh, also, most (not all) times that NODEMASK_ALLOC is used in cpusets,
> cgroup_mutex is also held. So how about just using static storage for
> them? (There could be a new macro "NODEMASK_ALLOC_STATIC", for use when
> the caller can never race against itself.) As long as the call-graph
> isn't recursive, there shouldn't be a problem...
> 

Yes, that sounds good but I'd suggest using it only when dynamic 
allocation cannot be done with GFP_KERNEL to avoid the waste.
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list