[Devel] [PATCH 7/7] packet: Pre-account maximum socket buffer into cg memory (v2)

Pavel Emelyanov xemul at parallels.com
Thu Jun 4 05:44:39 PDT 2015


>> OK, let's stop teasing :) If you don't like the try_get_memcg_from_current
>> feel free to patch one out. From my perspective this disfigures the code.
> 
> Hey, that's unfair. It's your patch set, so fix and *test* it yourself,
> please :)

It's tested and fixed (in the scope of this discussion). Whether to get the 
memcg from task or from its mm is the matter of taste (unless you have tech
arguments for or against either of them).

-- Pavel




More information about the Devel mailing list