[Devel] [PATCH RH7] net/skbuff: hide high-order-request warning in __alloc_skb()
Pavel Tikhomirov
ptikhomirov at virtuozzo.com
Mon Jun 20 18:36:09 MSK 2022
Similar to what we do in pskb_expand_head(), else we see 64k+
allocations for skb->head hit our high order warning.
https://jira.sw.ru/browse/PSBM-139948
Signed-off-by: Pavel Tikhomirov <ptikhomirov 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 790a4894bfcd..576bb1415ecc 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -256,7 +256,7 @@ struct sk_buff *__alloc_skb(unsigned int size, gfp_t gfp_mask,
*/
size = SKB_DATA_ALIGN(size);
size += SKB_DATA_ALIGN(sizeof(struct skb_shared_info));
- data = kmalloc_reserve(size, gfp_mask, node, &pfmemalloc);
+ data = kmalloc_reserve(size, gfp_mask|__GFP_ORDER_NOWARN, node, &pfmemalloc);
if (!data)
goto nodata;
/* kmalloc(size) might give us more room than requested.
--
2.36.1
More information about the Devel
mailing list