[Devel] [PATCH RHEL9 COMMIT] net: hide high-order-request warning in pskb_expand_head()

Konstantin Khorenko khorenko at virtuozzo.com
Wed Jan 12 18:36:43 MSK 2022


The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh9-5.14.0-4.vz9.10.38
------>
commit 00083be72b3abbb8b52de07f60c6f7e1d0d1d48b
Author: Vasily Averin <vvs at virtuozzo.com>
Date:   Wed Jan 12 18:36:43 2022 +0300

    net: hide high-order-request warning in pskb_expand_head()
    
    pskb_expand_head() can legally request high-order allocation and trigger
    high-order-allocation warning.
    
    https://jira.sw.ru/browse/PSBM-136733
    Signed-off-by: Vasily Averin <vvs at virtuozzo.com>
    
    Feature: mm: avoid high order allocations in all subsystems
---
 net/core/skbuff.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index 8e50179b69fb..ea9d7d481c90 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -1696,7 +1696,7 @@ int pskb_expand_head(struct sk_buff *skb, int nhead, int ntail,
 	if (skb_pfmemalloc(skb))
 		gfp_mask |= __GFP_MEMALLOC;
 	data = kmalloc_reserve(size + SKB_DATA_ALIGN(sizeof(struct skb_shared_info)),
-			       gfp_mask, NUMA_NO_NODE, NULL);
+			       gfp_mask|__GFP_ORDER_NOWARN, NUMA_NO_NODE, NULL);
 	if (!data)
 		goto nodata;
 	size = SKB_WITH_OVERHEAD(ksize(data));


More information about the Devel mailing list