[Devel] [PATCH vz7] hide high-order-request warning in pskb_expand_head()
Vasily Averin
vvs at virtuozzo.com
Fri Dec 31 03:52:41 MSK 2021
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 eef41003bdd3..790a4894bfcd 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));
--
2.25.1
More information about the Devel
mailing list