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

Konstantin Khorenko khorenko at virtuozzo.com
Fri Nov 1 16:30:13 MSK 2019


The commit is pushed to "branch-rh7-3.10.0-1062.4.1.vz7.115.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-1062.4.1.vz7.115.7
------>
commit cf47e9fee330a679f0d4410d459b5b1e386c2496
Author: Konstantin Khorenko <khorenko at virtuozzo.com>
Date:   Fri Nov 1 16:26:38 2019 +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>
---
 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 2a3b0ac64380..5b65d78ba3a1 100644
--- a/net/sctp/output.c
+++ b/net/sctp/output.c
@@ -468,7 +468,7 @@ int sctp_packet_transmit(struct sctp_packet *packet, gfp_t gfp)
 	} else {
 		pkt_size = packet->size;
 	}
-	head = alloc_skb(pkt_size + MAX_HEADER, gfp);
+	head = alloc_skb(pkt_size + MAX_HEADER, gfp | __GFP_ORDER_NOWARN);
 	if (!head)
 		goto err;
 	if (gso) {



More information about the Devel mailing list