[Devel] [PATCH RH9 10/30] sctp: suppress warnings on high order memory allocation on packet transmit
Andrey Zhadchenko
andrey.zhadchenko at virtuozzo.com
Tue Sep 28 21:49:01 MSK 2021
From: Konstantin Khorenko <khorenko at virtuozzo.com>
sctp is not widely used, let's just shut up the warning in
sctp_packet_transmit().
https://jira.sw.ru/browse/PSBM-99098
Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
(cherry-picked from vz7 commit cf47e9fee330 ("sctp: suppress warnings on high
order memory allocation on packet transmit"))
https://jira.sw.ru/browse/PSBM-127848
Signed-off-by: Valeriy Vdovin <valeriy.vdovin at virtuozzo.com>
(cherry picked from vz8 commit c882c6e27a5297969212526e35ce96b562f66143)
Signed-off-by: Andrey Zhadchenko <andrey.zhadchenko at virtuozzo.com>
---
net/sctp/output.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/sctp/output.c b/net/sctp/output.c
index 4dfb5ea..48f18c77 100644
--- a/net/sctp/output.c
+++ b/net/sctp/output.c
@@ -592,7 +592,7 @@ int sctp_packet_transmit(struct sctp_packet *packet, gfp_t gfp)
/* alloc head skb */
head = alloc_skb((gso ? packet->overhead : packet->size) +
- MAX_HEADER, gfp);
+ MAX_HEADER, gfp | __GFP_ORDER_NOWARN);
if (!head)
goto out;
skb_reserve(head, packet->overhead + MAX_HEADER);
--
1.8.3.1
More information about the Devel
mailing list