[Devel] [PATCH RHEL7 COMMIT] hide high-order-request warning in pskb_expand_head()

Vasily Averin vvs at virtuozzo.com
Fri Dec 31 03:55:40 MSK 2021


The commit is pushed to "branch-rh7-3.10.0-1160.42.2.vz7.184.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-1160.42.2.vz7.184.9
------>
commit a4a524d55cdae3372ee9cbe2115aa37f0d941530
Author: Vasily Averin <vvs at virtuozzo.com>
Date:   Fri Dec 31 03:55:40 2021 +0300

    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>
---
 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 eef4100..790a489 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -1267,7 +1267,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