[Devel] [PATCH RHEL COMMIT] vhost: suppress high-order-allocation warning for vhost_log

Konstantin Khorenko khorenko at virtuozzo.com
Thu Sep 30 16:03:53 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 916176c51cf74f1b4871673d1cfd48ef8037eb48
Author: Vasily Averin <vvs at virtuozzo.com>
Date:   Thu Sep 30 16:03:53 2021 +0300

    vhost: suppress high-order-allocation warning for vhost_log
    
    In RHEL77+ kernels vhost_net requires 0x4400 bytes for vhost_log allocation.
    
    https://jira.sw.ru/browse/PSBM-97775
    
    Signed-off-by: Vasily Averin <vvs at virtuozzo.com>
    
    (cherry-picked from vz7 commit 2a9f04037940 ("vhost: suppress
    high-order-allocation warning for vhost_log"))
    
    https://jira.sw.ru/browse/PSBM-127848
    Signed-off-by: Valeriy Vdovin <valeriy.vdovin at virtuozzo.com>
    
    (cherry picked from vz8 commit d975fe0f2c337b843ad494a365492cee89b80d42)
    Signed-off-by: Andrey Zhadchenko <andrey.zhadchenko at virtuozzo.com>
---
 drivers/vhost/vhost.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c
index 59edb5a1ffe2..a0bfc77c6a43 100644
--- a/drivers/vhost/vhost.c
+++ b/drivers/vhost/vhost.c
@@ -401,7 +401,7 @@ static long vhost_dev_alloc_iovecs(struct vhost_dev *dev)
 					     sizeof(*vq->indirect),
 					     GFP_KERNEL);
 		vq->log = kmalloc_array(dev->iov_limit, sizeof(*vq->log),
-					GFP_KERNEL);
+					GFP_KERNEL | __GFP_ORDER_NOWARN);
 		vq->heads = kmalloc_array(dev->iov_limit, sizeof(*vq->heads),
 					  GFP_KERNEL);
 		if (!vq->indirect || !vq->log || !vq->heads)


More information about the Devel mailing list