[Devel] [PATCH RHEL COMMIT] sctp: suppress warnings on high order memory allocation on packet transmit

Konstantin Khorenko khorenko at virtuozzo.com
Thu Sep 30 16:03:54 MSK 2021


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 ark-5.14
------>
commit 734ae288d91f6cfe0415b833840fe7caa26e8a2c
Author: Konstantin Khorenko <khorenko at virtuozzo.com>
Date:   Thu Sep 30 16:03:54 2021 +0300

    sctp: suppress warnings on high order memory allocation on packet transmit
    
    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 4dfb5ea82b05..48f18c77bf1a 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);


More information about the Devel mailing list