[Devel] [PATCH RH8 1/4] memcg: disable incomplete accounting for af_packet

Vasily Averin vvs at virtuozzo.com
Tue Apr 13 14:03:45 MSK 2021


This patch revert af_packet changes in alloc_pg_vec()

Fixes: 06fac184ac6b
("memcg: charge kmem allocations accounted to UBC in PCS6 to memcg")

https://jira.sw.ru/browse/PSBM-120694
Signed-off-by: Vasily Averin <vvs at virtuozzo.com>
---
 net/packet/af_packet.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
index c3cd4c5224d6..001a1320ce98 100644
--- a/net/packet/af_packet.c
+++ b/net/packet/af_packet.c
@@ -4304,8 +4304,7 @@ static struct pgv *alloc_pg_vec(struct tpacket_req *req, int order)
 	struct pgv *pg_vec;
 	int i;
 
-	pg_vec = kcalloc(block_nr, sizeof(struct pgv),
-			 GFP_KERNEL_ACCOUNT | __GFP_NOWARN);
+	pg_vec = kcalloc(block_nr, sizeof(struct pgv), GFP_KERNEL | __GFP_NOWARN);
 	if (unlikely(!pg_vec))
 		goto out;
 
-- 
2.25.1



More information about the Devel mailing list