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

Konstantin Khorenko khorenko at virtuozzo.com
Mon Jun 7 15:54:03 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 3403afebab359e5d38914c852027eaba43c10256
Author: Vasily Averin <vvs at virtuozzo.com>
Date:   Mon Jun 7 15:54:03 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>
---
 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 890ad685ca05..10940075a5d2 100644
--- a/drivers/vhost/vhost.c
+++ b/drivers/vhost/vhost.c
@@ -387,7 +387,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