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

Konstantin Khorenko khorenko at virtuozzo.com
Mon Jun 7 18:55:25 MSK 2021


The commit is pushed to "branch-rh8-4.18.0-240.1.1.vz8.5.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-240.1.1.vz8.5.35
------>
commit 1d0dce6f0f50ce1092386ab96f1770b02b1aa993
Author: Konstantin Khorenko <khorenko at virtuozzo.com>
Date:   Mon Jun 7 18:55:25 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>
---
 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 d6757ba25f68..637dc1a8133f 100644
--- a/net/sctp/output.c
+++ b/net/sctp/output.c
@@ -585,7 +585,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