Thread (9 messages) 9 messages, 3 authors, 2021-07-26

Re: [PATCH v5 02/16] memcg: enable accounting for IP address and routing-related objects

From: Shakeel Butt <hidden>
Date: 2021-07-26 13:48:20
Also in: lkml, netdev

On Mon, Jul 26, 2021 at 3:23 AM Vasily Averin [off-list ref] wrote:
[...]
quoted
Can you please also change in_interrupt() in active_memcg() as well?
There are other unrelated in_interrupt() in that file but the one in
active_memcg() should be coupled with this change.
Could you please elaborate?
From my point of view active_memcg is paired with set_active_memcg() and is not related to this case.
active_memcg uses memcg that was set by set_active_memcg(), either from int_active_memcg per-cpu pointer
or from current->active_memcg pointer.
I'm agree, it in case of disabled BH it is incorrect to use int_active_memcg,
we still can use current->active_memcg. However it isn't a problem,
memcg will be properly provided in both cases.

I think it's better to fix set_active_memcg/active_memcg by separate patch.

Am I missed something perhaps?
No you are right. That should be a separate patch.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help