[RHEL7,COMMIT] rdma/i40iw: hide high-order-allocation warning in i40iw_save_msix_info()

Submitted by Konstantin Khorenko on Oct. 18, 2019, 12:23 p.m.

Details

Message ID 201910181223.x9ICNH87003747@finist-ce7.sw.ru
State New
Series "rdma/i40iw: hide high-order-allocation warning in i40iw_save_msix_info()"
Headers show

Commit Message

Konstantin Khorenko Oct. 18, 2019, 12:23 p.m.
The commit is pushed to "branch-rh7-3.10.0-1062.1.2.vz7.114.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-1062.1.2.vz7.114.7
------>
commit 42463cc52c94d03d1e512312555fea6b2c5142a3
Author: Vasily Averin <vvs@virtuozzo.com>
Date:   Fri Oct 18 15:23:17 2019 +0300

    rdma/i40iw: hide high-order-allocation warning in i40iw_save_msix_info()
    
    Size of struct i40iw_msix_vector was increased in RHEL7.7 kernels
    due to ML commit 43731753c4b7 ("RDMA/i40iw: Avoid panic when reading back the
    IRQ affinity hint").
    It triggers high-order-allocation warning in i40iw_save_msix_info().
    
    The patch disables this warning.
    
    https://pmc.acronis.com/browse/VSTOR-27273
    Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
---
 drivers/infiniband/hw/i40iw/i40iw_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/drivers/infiniband/hw/i40iw/i40iw_main.c b/drivers/infiniband/hw/i40iw/i40iw_main.c
index 5fd299818b46..8b3b5d95d12f 100644
--- a/drivers/infiniband/hw/i40iw/i40iw_main.c
+++ b/drivers/infiniband/hw/i40iw/i40iw_main.c
@@ -1439,7 +1439,7 @@  static enum i40iw_status_code i40iw_save_msix_info(struct i40iw_device *iwdev,
 	size = sizeof(struct i40iw_msix_vector) * iwdev->msix_count;
 	size += sizeof(struct i40e_qvlist_info);
 	size +=  sizeof(struct i40e_qv_info) * iwdev->msix_count - 1;
-	iwdev->iw_msixtbl = kzalloc(size, GFP_KERNEL);
+	iwdev->iw_msixtbl = kzalloc(size, GFP_KERNEL | __GFP_NOWARN);
 
 	if (!iwdev->iw_msixtbl)
 		return I40IW_ERR_NO_MEMORY;