From: Vasily Averin <v...@virtuozzo.com>

In RHEL77+ kernels vhost_net requires 0x4400 bytes for vhost_log allocation.

https://jira.sw.ru/browse/PSBM-97775

Signed-off-by: Vasily Averin <v...@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.vdo...@virtuozzo.com>

(cherry picked from vz8 commit d975fe0f2c337b843ad494a365492cee89b80d42)
Signed-off-by: Andrey Zhadchenko <andrey.zhadche...@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 59edb5a..a0bfc77 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)
-- 
1.8.3.1

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to