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

Konstantin Khorenko khorenko at virtuozzo.com
Fri Oct 18 15:23:18 MSK 2019


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 at 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 at virtuozzo.com>
---
 drivers/infiniband/hw/i40iw/i40iw_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;



More information about the Devel mailing list