(2012/06/18 19:28), Glauber Costa wrote:
> This patch creates a mechanism that skip memcg allocations during
> certain pieces of our core code. It basically works in the same way
> as preempt_disable()/preempt_enable(): By marking a region under
> which all allocations will be accounted to the root memcg.
> 
> We need this to prevent races in early cache creation, when we
> allocate data using caches that are not necessarily created already.
> 
> Signed-off-by: Glauber Costa<[email protected]>
> CC: Christoph Lameter<[email protected]>
> CC: Pekka Enberg<[email protected]>
> CC: Michal Hocko<[email protected]>
> CC: Kamezawa Hiroyuki<[email protected]>
> CC: Johannes Weiner<[email protected]>
> CC: Suleiman Souhlal<[email protected]>

I'm ok with this approach.

Reviewed-by: KAMEZAWA Hiroyuki <[email protected]>


_______________________________________________
Devel mailing list
[email protected]
https://openvz.org/mailman/listinfo/devel

Reply via email to