Re: [PATCH v2] nft: memcg accounting for dynamically allocated objects

From: Pablo Neira Ayuso
Date: Tue Apr 05 2022 - 20:21:54 EST


On Sat, Apr 02, 2022 at 12:50:37PM +0300, Vasily Averin wrote:
> nft_*.c files whose NFT_EXPR_STATEFUL flag is set on need to
> use __GFP_ACCOUNT flag for objects that are dynamically
> allocated from the packet path.
>
> Such objects are allocated inside nft_expr_ops->init() callbacks
> executed in task context while processing netlink messages.
>
> In addition, this patch adds accounting to nft_set_elem_expr_clone()
> used for the same purposes.

Applied to nf, thanks